2012-03-26 3 views
5

내가 windows7x64에 easy_install을 사용하려고하고지고있어이 : C : \ Python27 \ 스크립트> easy_install.exe 장고 - 피스톤 오류 : 만들 수 없습니다 또는 설치 디렉토리에있는 파일을 제거 내가 easy_install을 하나의 해결 경로의 변경에서 DIR 사이트 패키지 경로를 변경하는 방법 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). 

"C : \ Python27 \ lib 디렉토리 \ 사이트 - 패키지"

당신을 감사합니다.

답변

8

easy_install은 패키지를 Python 설치의 site-packages 디렉토리에 설치해야합니다. 실수로 파이썬의 디렉토리를 변경했을 수도 있습니다. easy_install을 다시 설치하면이 문제가 해결됩니다.

그렇지 않으면 당신이 사용할 수 있습니다

  1. C:\Python27\Lib\site-packages\Lib\site-packages\ 당신은 모든위한 설치-DIR 디렉토리를 표시해야합니다 PYTHONPATH
  2. 에 있는지 확인합니다 : easy_install --install-dir C:\Python27\Lib\site-packages\Lib\site-packages\ django-piston

    을하지만,이 마지막 옵션은 두 가지 문제가 있습니다 새로 설치 한 패키지