我想爲python 2.6安裝Sphinx 1.1.3。但是,我沒有sudo權限。因此,而不是將它安裝在默認位置,我想使用--prefix來設置不同的位置。執行以下操作:Easy_install的--prefix選項不會改變它試圖安裝我的包的地方
-bash-3.2$ easy_install Sphinx-1.1.3-py2.6.egg --prefix=/homes/ndeklein/python2.6/site-packages/
給我:
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/lib/python2.4/site-packages/test-easy-install-18534.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/lib/python2.4/site-packages/
上午我打字有點毛病前綴?另外,我可以使用什麼(我已經與其他軟件包一起使用):
python setup.py install --home=/homes/ndeklein/python2.6/site-packages/
但我無法找到setup.py腳本。我猜EGGs沒有setup.py腳本,這是真的嗎?
Appareantly的源代碼也有setup.py,所以我用這一點,但它becasue是一個非常方便的鏈接我接受你的回答。 – 2012-04-04 12:01:06
是的,我剛剛發現這個鏈接有一天,我的一個同事...以前,當我沒有根,我安裝了一個私人版本的蟒蛇(我想要2.7無論如何...),但我書籤鏈接,因爲它看起來很有用。 – mgilson 2012-04-04 13:25:35
死鏈接,如果你在答案中總結出來,它會很好... – 2016-07-07 23:27:09