到python官方網站,下載macOS 64-bit installer 。
下載完成後雙擊.pkg文件安裝既可
% python3
Python 3.8.3 (v3.8.3:6f8c8320e9, May 13 2020, 16:29:34)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
% which python3
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
我這原來的/usr/bin/python3 還是3.7
% /usr/bin/python3
Python 3.7.3 (default, Apr 7 2020, 14:06:47)
[Clang 11.0.3 (clang-1103.0.32.59)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
怎樣在pycharm里使用?
Setting裡面(cmd + ,) search interpreter,選project interpreter
添加成功後
怎樣創建virtual environment?
python3 -m venv <path>
python 3.8.3有什麼新特性?
新添了類型提示。