[英]How to change path to site-packages dir in easy_install
我正在嘗試在 windows7x64 上使用 easy_install 並得到這個:
<output>
c:\Python27\Scripts>easy_install.exe django-piston
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 2] No such file or directory: 'C:\\Python27\\Lib\\site-packages\\Lib\
\site-packages\\test-easy-install-4132.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
C:\Python27\Lib\site-packages\Lib\site-packages\
This directory does not currently exist. Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).
我在哪里可以更改 easy_install 的路徑以更正一個“C:\\Python27\\Lib\\site-packages”?
easy_install 應該將軟件包安裝在 Python 安裝的 site-packages 目錄中。 您可能不小心更改了 Python 的目錄。 重新安裝 easy_install 應該可以解決這個問題。
否則你可以使用: easy_install --install-dir C:\\Python27\\Lib\\site-packages\\Lib\\site-packages\\ django-piston
但是,最后一個選項有兩個問題:
C:\\Python27\\Lib\\site-packages\\Lib\\site-packages\\
在 PYTHONPATH 中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.