![](/img/trans.png)
[英]How to use macports modules with the default version of Python preinstalled with Mac OSX?
[英]Use python 2.7 on mac osx using macports
usge:~ glab$ port select --list python
Available versions for python:
none (active)
python25-apple
python26-apple
python27
usge:~ glab$ sudo port select --set python python27
Selecting 'python27' for 'python' failed: symlink: /opt/local/etc/select/python/current -> python27: file already exists
usge:~ glab$ which python
/opt/local/bin/python
我想將python2.7設置為我的默認python,但是失敗並出現以上錯誤消息。 如何解決此問題(我在Mac OS X上使用macports)
我曾經遇到過這個問題,但是我不記得這個問題是如何發生的。 我認為解決方案就像刪除錯誤中引用的符號鏈接並再次執行port select命令一樣簡單。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.