2012-03-26 9 views
5

Staram się używać easy_install na windows7x64 i uzyskanie w ten sposób: c: \ Python27 \ Scripts> easy_install.exe django-tłokowe błąd: nie można utworzyć lub usunąć pliki w katalogu instalacyjnegojak zmienić ścieżkę do strony opakowań dir w easy_install

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). 

Gdzie mogę zmienić easy_install jest ścieżka poprawne "C: \ Python27 \ Lib \ site-packages"

dziękuję.

Odpowiedz

8

easy_install należy zainstalować pakiety w katalogu site-packages instalacji Pythona. Mogło się zdarzyć, że przypadkowo zmieniłeś katalog Pythona. Ponowna instalacja easy_install powinna to naprawić.

W przeciwnym wypadku można użyć: easy_install --install-dir C:\Python27\Lib\site-packages\Lib\site-packages\ django-piston

Jednak ta ostatnia opcja ma dwa problemy:

  1. Upewnij się, C:\Python27\Lib\site-packages\Lib\site-packages\ jest w PYTHONPATH
  2. Trzeba będzie oznaczać install-dir katalog dla każdego nowy pakiet, który instalujesz:
Powiązane problemy