저는 비교적 새로운 파이썬 사용자입니다. 저는이 문제 (아마도 간단한 문제일까요?)에 지속적으로 부딪 히고 있습니다.파이썬 패키지 설치 및 가져 오기
여기에 문제가 있습니다. pip 또는 easy_install을 사용하여 패키지를 설치하려고 할 때마다 내 사용자 프로필이 설치 디렉토리에 액세스 할 수 없다는 오류가 발생합니다. 그러나 저는 제 컴퓨터의 관리자입니다. 설치는 easy_install을 사용하여 완료되지 않지만 (필자는 아래 오류가 나타남) 결국 pip를 사용하여 끝났지 만 설치 후 패키지를 가져올 수 없습니다. 일반적으로 "모듈 이름 없음"오류가 발생합니다.
Easy_install error message:
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: '/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/test-easy-install-3280.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
http://packages.python.org/distribute/easy_install.html
Please make the appropriate changes for your system and try again.
python 2.7 폴더에서 내 site-packages 폴더가 비어있는 것 같습니다. 설치된 패키지가 있어야하는 곳입니까? 나는 모듈의 폴더를이 위치로 옮겨 보려고 시도했다. 파이썬을 재시작하여 효과가 있는지는 알 수 없었다. – user2179795