문제

나는 진짜 문제는 설치 비눗물에서는 파이썬 2.6.4.내가 노력하는 설치 파일을 설치 하지만 그것이 말하는 위치의 파이썬을 찾을 수 없습니다.이 때문에 나는 변경의 위치에 있습니다.사 easy_install 그러나 있습니다.가 누구나 알고 간단한 방법으로 이를 수행하거나 링크하는 명확한 설명을 찾으실 수 있습니다.

명령을 내가 입력한다:

python setup.py install

결과 내가 받았다:

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

그리고 필요한 경우에는 변경 python path 는 방법을 정확하게는 이것이 가능합니다.

가 무엇을 하나의 사이트를 수행했다고 그것이 첫째,만들 altinstall.pth 파일에서는 파이썬의 사이트 패키지는 디렉터리를 포함,다음과 같은 라인:

import os, site; site.addsitedir(os.path.expanduser('~/lib/python2.3'))

를 수정을 실행할 필터.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
도움이 되었습니까?

해결책

을 시도했다는 설정 PYTHONPATH 의 위치를 파이썬?어쩌면 이 방법으로 그것이 알고,어디로 설치합니다.

당신은 그것과 python setup.py install.도 sudo python setup.py install, 는 경우에,당신이 일부를 사용하여 리눅스와 당신은 당신 sudoer.

다른 팁

나는 메시지를 다음과 같이 너무 때 나는 설치 비눗물 및 python-ntlm.우리의 사이트는 별도의 areafor 설치할 수 있도록 여러 버전을 관리,그래서 내 처음 설치 단계

python setup.py install --prefix=/install/suds/suds-0.4

와 같은 메시지에 대한 installplace.정:

확인하는 디렉토리와 함께 거기

mkdir -p  /install/suds/suds-0.4/lib/python2.6/site-packages/

(이것은 나를 놀라게 조금 생각,설치 프로그램을 구축 디렉토리입니다.)

이 있는지 확인에 쓰기 권한이 아무

chmod -R 775 /install/suds/suds-0.4/lib/python2.6/site-packages/

어느 것도의 메시지!

마지막 단계를 설치 영역으로 PYTHONPATH,그리고 다음 setup.py

export PYTHONPATH=/install/suds/suds-0.4/lib/python2.6/site-packages:$PYTHONPATH
python setup.py install --prefix=/opt/sw/fw/qce/suds/suds-0.4

최종 chmod 을 새로 설치 파일을 읽을 수 있는 경우에는 umask 를 설정하면 무언가가 제한적인:

 chmod 755 /install/suds/suds-0.4/lib/python2.6/site-packages/*

이 후에 시작할 수 있는 파이썬고 가져오는 비눗물.키 단계는 두는 비눗물 사이트 패키지는 디렉토리로 PYTHONPATH.

나이는 데 도움이 원래 포스터,그러나 나는 그것을 희망하는 데 도움이 다른 누군가가 와서 그렇게 이 질문입니다.로 했습니다.

나는 더 많은 정보를 필요로 당신의 OS 을 정확하게 응답합니다.의 소리에서 당신의 질문에 변경한 경로의 파이썬.일반적으로 당신이 사전 설치되어 python 버전과 호환되는 OS.예를 들어,CentOS5.x 께서는 python2.4,그러나 당신이 할 수 있는 yum install python2.6.일단 설치,실행할 수 있습니다 python2.6 로 python26 명령입니다.

을 할 때 설치 및 패키지,이용하려고 사용하는 패키지 관리자로서 가능한 많은 도움이 그들은 당신의 종속성과 같은 yum.Yum 또한 제어를 업데이트 패키지 대신하여 업데이트 할 수 있습니다.다음 최고의 것은 하 설치를 통한 pipeasy install, 의 경우 이 질문을 시도할 수 있습니다 easy_install https://fedorahosted.org/releases/s/u/suds/python-suds-0.4.tar.gz (필요합과 함께 진행됩),그리고 마지막으로 당신이 시도 할 수있는 수동 설치합니다.나우 포인트는 일을 해요 설명서,설치,나는 느낌이 나는 실패했 어딘가:) 다른 사이트에서 수집하는 정보는 다음과 같은 세부 사항에서 수행하는 방법에 대한 설치할 수 있습니다.

행운을 빕니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top