Mac 安裝Python3
Mac預設是整合Python 環境的,一般是2版本。你可以在終端輸入命令看一下:
zhangyudeiMac:~ zhangyu$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
我們想要安裝下python3有兩種方法安裝:
一、第一種直接去官網下載安裝: https://www.python.org/downloads/mac-osx/,有些人感覺這樣裝有點不能裝逼。重點說下brew安裝吧,
二、homebrew 安裝,如果你是使用Mac的程式設計師,一定知道這個吧,本人很喜歡。如果不知道點這裡傻瓜式教學安裝。
Homebrew安裝Python3詳細步驟指令:
1、執行 brew search python
==> Searching local taps...
app-engine-python gst-python micropython python3
boost-python ipython python wxpython
boost-python@1.59 ipython@5 python-markdown zpython
==> Searching taps on GitHub...
caskroom/cask/awips-python caskroom/cask/mysql-connector-python
caskroom/cask/kk7ds-python-runtime
==> Searching blacklisted, migrated and deleted formulae..
2、這時候看到python3了,然後執行 brew install python3
如果成功你會看到最後幾行:
They will install into the site-package directory
/usr/local/lib/python3.6/site-packages
See: https://docs.brew.sh/Homebrew-and-Python.html
==> Summary
�� /usr/local/Cellar/python3/3.6.4_2: 3,593 files, 56.2MB
/usr/local/Cellar/python3/3.6.4_2 這是路徑,你可以開啟看下:
zhangyudeiMac:~ zhangyu$ python3
Python 3.6.4 (default, Jan 6 2018, 11:51:59)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
zhangyudeiMac:~ zhangyu$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
相關文章
- mac安裝python3MacPython
- mac上如何安裝python3MacPython
- brew 安裝python3:如何使用brew安裝Python3Python
- Mac安裝python2和python3,並配置MacPython
- CentOS 安裝Python3CentOSPython
- CentOS 安裝 Python3CentOSPython
- centOS安裝python3CentOSPython
- linux安裝python3(原始碼安裝)LinuxPython原始碼
- 為CentOS安裝python3CentOSPython
- Linux安裝Python3LinuxPython
- python3安裝scrapy框架Python框架
- Python3安裝requests庫Python
- Python3 安裝Opencv方法PythonOpenCV
- python3環境安裝Python
- ffmpeg安裝之mac安裝Mac
- mac 安裝opencv homebrew安裝MacOpenCV
- rhel7安裝python3Python
- 怎麼解除安裝python3Python
- python3環境如何安裝Python
- windows10 安裝python3WindowsPython
- linux下安裝python3LinuxPython
- python3安裝和使用virtualenvPython
- Linux下Python3安裝LinuxPython
- Mac Redis安裝與解除安裝MacRedis
- Mac 安裝 NginxMacNginx
- Mac 安裝 JDKMacJDK
- Mac 安裝 RedisMacRedis
- Mac 安裝thriftMac
- Mac安裝vueMacVue
- MAC 安裝BrewMac
- Mac Flutter 安裝MacFlutter
- Mac安裝HomebrewMac
- mac安裝gocsMacGo
- MAC 安裝 MongoDBMacMongoDB
- mac安裝ElasticsearchMacElasticsearch
- mac安裝nginxMacNginx
- mac安裝mysqlMacMySql
- Mac 安裝axureMac