運行蟒蛇在本教程(3.16),下載,然後從主蟒蛇網站運行圖形安裝程序,然後輸入Mac的終端後:無法在Mac 10.11
$ python
Python 3.5.2 |Anaconda 4.1.1 (x86_64)|...
然而,當我做同樣的首先,它給了我下面的:
JOHNMAC:~ Main$ python
Python 2.7.13 (default, Apr 4 2017, 08:46:44)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more
information.
- 爲什麼不Python版本3?
- 它實際運行Anaconda嗎?像我的教程的計算機做它不顯示蟒蛇版本...
欲瞭解更多信息...
JOHNMAC:~ Main$ python3
Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
檢查$ PATH:
JOHNMAC:~ Main$ echo $PATH
/usr/local/bin:/usr/local/sbin:/Users/Main/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
康達信息:
JOHNMAC:~ Main$ conda info
Current conda install:
platform : osx-64
conda version : 4.3.22
conda is private : False
conda-env version : 4.3.22
conda-build version : not installed
python version : 3.6.1.final.0
requests version : 2.14.2
root environment : /Users/Main/anaconda (writable)
default environment : /Users/Main/anaconda
envs directories : /Users/Main/anaconda/envs
/Users/Main/.conda/envs
package cache : /Users/Main/anaconda/pkgs
/Users/Main/.conda/pkgs
channel URLs : https://repo.continuum.io/pkgs/free/osx-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/osx-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/osx-64
https://repo.continuum.io/pkgs/pro/noarch
config file : /Users/Main/.condarc
netrc file : None
offline mode : False
user-agent : conda/4.3.22 requests/2.14.2 CPython/3.6.1 Darwin/15.6.0 OSX/10.11.6
UID:GID : 501:20
看起來你已經把'在/ usr/local/bin目錄:在/ usr /本地/ sbin'我只是重新排序蟒蛇 –
前水蟒在這些之前。但是當我從mac終端輸入「python」時,我仍然得到關於python版本的信息,anaconda似乎沒有運行。 – murakamifund300
奇怪......我以爲我重新排序了它,但又改回到了我所在的地方...... – murakamifund300