使用macports在MacOSX上使用Python2.7

2024-09-30 00:28:36 发布

您现在位置:Python中文网/ 问答频道 /正文

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,但由于上面的错误消息而失败。如何解决这个问题(我在MacOSX上使用macports)


Tags: noneappleforportlocalversionsselectlist
1条回答
网友
1楼 · 发布于 2024-09-30 00:28:36

我以前遇到过这个问题,但我想不起来这个问题是怎么发生的。我认为解决方案非常简单,只需删除错误中引用的符号链接,然后再次执行port select命令。你知道吗

相关问题 更多 >

    热门问题