Python学习记录
开发工具
一次获得所有PYTHON工具
在mac中安装
一、查看mac自带 python版本
python
WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal. Python 2.7.16 (default, Dec 21 2020, 23:00:36) [GCC Apple LLVM 12.0.0 (clang-1200.0.30.4) [+internal-os, ptrauth-isa=sign+stri on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
二、退出
exit()
三、安装python3
brew install python3
四、验证
python3
Python 3.8.2 (default, Dec 21 2020, 15:06:04) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
五、位置
which python3
/usr/bin/python3
六、问题
Warning: Building python@3.9 from source: The bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with: xcode-select --install
参考资料