파이썬 2.6.4에서 SUDS를 설치하는 데 정말로 문제가 있습니다. 설치 파일을 설치하려고했지만 파이썬 위치를 찾을 수 없다고합니다. 이것은 파이썬의 위치를 변경했기 때문입니다. easy_install을 사용하려고했지만 운이 없었습니다. 누구든지이 작업을 수행하거나 설치 지침을 지우는 간단한 방법을 알고 있습니까? 내가 받았다파이썬에서 SUDS 설치하기 2.6.4
python setup.py install
결과가 있었다 : I 입력
명령했다
running install
error: cannot 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/local/lib/python2.6/site-packages/test-easy-install-9203.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.6/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://peak.telecommunity.com/EasyInstall.html
그리고 나는이 작업을 수행 할 정확히 어떻게 파이썬 경로를 변경해야하는 경우.
나는 하나 개의 사이트에서 그렇게 말했다 그것은 첫째, 다음 줄을 포함, 파이썬의 사이트 패키지 디렉토리에 altinstall.pth 파일을 만들 무엇 시도 :
import os, site; site.addsitedir(os.path.expanduser('~/lib/python2.3'))
는 그런 다음의 distutils를 수정했다. cfg 디렉토리와 함께 :
[install]
install_lib = ~/lib/python2.3
# This next line is optional but often quite useful; it directs EasyInstall
# and the distutils to install scripts in the user's "bin" directory. For
# Mac OS X framework Python builds, you should use /usr/local/bin instead,
# because neither ~/bin nor the default script installation location are on
# the system PATH.
#
install_scripts = ~/bin
현재 사용중인 플랫폼, 정확한 명령 시도, 정확한 오류보고 등 자세한 정보가 필요합니다. –
@ gruszczy 감사합니다. 수퍼 유저로 변경하지 않은 이유는 무엇입니까? 문제를 일으키는 경로라고 생각했습니다. 정말 바보 같아서 도와 줘서 고마워. – chrissygormley
N/p. easy_install을 사용하는 경우 수퍼 유저 여야합니다. 비웃음과 행복 해킹 :-) – gruszczy