mac修改默认python版本_Anaconda/MacOS:更改默认python版本
好吧,我在連續(xù)體郵件列表中發(fā)現(xiàn)了類似的問(wèn)題。
通過(guò)conda重新安裝python解決了這個(gè)問(wèn)題$ conda install python=2.7
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment /Users/kadu/anaconda:
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-3.5.2 | py27_0 135 KB
pycosat-0.6.1 | py27_0 57 KB
python-2.7.6 | 2 16.5 MB
pyyaml-3.11 | py27_0 149 KB
requests-2.3.0 | py27_0 564 KB
------------------------------------------------------------
Total: 17.4 MB
The following packages will be UN-linked:
package | build
---------------------------|-----------------
conda-3.5.2 | py34_0
pycosat-0.6.1 | py34_0
python-3.4.1 | 0
pyyaml-3.11 | py34_0
requests-2.3.0 | py34_0
The following packages will be linked:
package | build
---------------------------|-----------------
conda-3.5.2 | py27_0 hard-link
pycosat-0.6.1 | py27_0 hard-link
python-2.7.6 | 2 hard-link
pyyaml-3.11 | py27_0 hard-link
requests-2.3.0 | py27_0 hard-link
Proceed ([y]/n)?
這也可用于更改在anaconda環(huán)境下的默認(rèn)包:$ conda install python=3.4
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment /Users/kadu/anaconda:
The following packages will be UN-linked:
package | build
---------------------------|-----------------
conda-3.5.2 | py27_0
pycosat-0.6.1 | py27_0
python-2.7.6 | 2
pyyaml-3.11 | py27_0
requests-2.3.0 | py27_0
The following packages will be linked:
package | build
---------------------------|-----------------
conda-3.5.2 | py34_0 hard-link
pycosat-0.6.1 | py34_0 hard-link
python-3.4.1 | 0 hard-link
pyyaml-3.11 | py34_0 hard-link
requests-2.3.0 | py34_0 hard-link
Proceed ([y]/n)?
但是,這需要手動(dòng)將生成更改為您使用的任何其他包。我不得不重新安裝spyder,這似乎在一開(kāi)始就造成了這個(gè)錯(cuò)誤,大概是在我試圖以錯(cuò)誤的版本啟動(dòng)spyder時(shí)重新安裝的。所有其他的庫(kù),我沒(méi)有嘗試重新安裝,仍然在2.7下運(yùn)行良好。
總結(jié)
以上是生活随笔為你收集整理的mac修改默认python版本_Anaconda/MacOS:更改默认python版本的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: python页面跳转中_python w
- 下一篇: python get请求 由于目标机器_