【发布时间】:2020-05-21 04:45:05
【问题描述】:
我在 macOS 上,我正在尝试使用 macport 在 python 上安装一个名为“obspy”的包。 我已经安装了 Xcode 和 macport,并尝试了下面的代码:
sudo port select python
然后返回错误信息:
screen shot of my terminal while entering the command
有没有办法“创建”或确保 macport 识别组“python”?
(当然我有python,python的路径是/usr/bin/python)
【问题讨论】:
-
MacPorts (a) 不在
/usr/bin/python中安装python 并且(b) 它在调用port select时使用特定的版本号。请参阅macOS上有关如何使用多个版本的 Python 的文档。