我有一个旧版本的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/
不
根据setup.py 编写的{p>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML-0.7.11-py2.7.egg-info
因此,我想将安装路径更改为/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML/
我该怎么做?
答案 0 :(得分:1)
它已安装在那里。 .egg-info
文件只是给setuptools提供了有关包的更多信息,例如版本,要求等,不应该从那里移动。