2013-01-22 128 views
1

我有一箇舊版本的PyML 7.10,我想安裝新版本7.11。選擇安裝python模塊的位置

爲此,我下載了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/

我該怎麼辦呢?

回答

1

它已經安裝在那裏。 .egg-info文件只是給setuptools更多關於軟件包的信息,例如版本,需求等,不應該從那裏移動。

+0

但是,當我編寫打印PyML .__版本___時,它仍然表示7.10以及'/ opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyML /都是從11月30日09:42開始的,我懷疑是在安裝7.10時。因此我懷疑這個安裝是否是nada。 –

+0

您是否檢查了源中的值? –

+0

忽略最後一條評論,日期可能是這個人創建這些文件的時間,因爲這些文件夾是今天更新的,文件的方式更早。 –