我有一个旧版本的 PyML,7.10,我想安装新版本 7.11。
为此,我下载了 PyML 并运行 setup.py。
但是,当我跑步时
sudo python setup.py install
结果是:
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML-0.7.11-py2.7.egg-info
Writing /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML-0.7.11-py2.7.egg-info
这看起来很好而且花花公子,但是正在运行
print PyML.__file__
告诉我 python 在文件夹中查找 PyML
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML/
不是
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML-0.7.11-py2.7.egg-info
根据 setup.py,它是在哪里写的
因此我想将安装路径更改为/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML/
我该怎么做呢?