macports 没有将 python_select 放在 /opt/local/bin 中
我已经使用 MacPorts 卸载并重新安装了 python_select,但它不会显示在 /opt/local/bin 中。因此,在尝试运行它时出现“未找到命令”错误。然而 MacPorts 坚持认为它已安装。甚至尝试过 uninstall -f 和 port clean --all python_select。
是否有更彻底的步骤将其从 MacPorts 中删除并尝试再次安装?
I've uninstalled and reinstalled python_select using MacPorts and yet it won't show up in /opt/local/bin. Consequently, I get a "command not found" error when attempting to run it. Yet MacPorts insists that it is installed. Have even tried uninstall -f and port clean --all python_select.
Is there a more drastic step to remove it from MacPorts and try installing again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎
python_select
已被弃用:It seems that
python_select
has been deprecated:这会将 Python 别名 (/opt/local/bin/python) 设置为 python25
如果您不确定必须选择哪个版本的 Python,您可以使用:
这会向您显示
python27
被选中,版本 25 & 26 个具有 Apple 特定版本(这些版本随 OS X 一起分发)。This will set the Python alias (/opt/local/bin/python) to python25
If you're not sure which versions of Python you have to select from, you can use:
This shows you that
python27
is selected, and that versions 25 & 26 have Apple specific versions (these are distributed with OS X).