2013-02-27 3 views
3

easy_installsetuptoolsPython 2.7에 설치했습니다. easy_install pip을 사용하여 pip을 설치하는 동안 나는 악몽을 꾼다. 나는 나의 게시물과 블로그를 따라 갔지만 여전히 도움은 안된다.Windows 7 64 비트에서 설치하기

Searching for pip 
Reading http://pypi.python.org/simple/pip/ 
Download error: [Errno 10061] No connection could be made because the target mac 
hine actively refused it -- Some packages may not be found! 
Couldn't find index page for 'pip' (maybe misspelled?) 
Scanning index of all packages (this may take a while) 
Reading http://pypi.python.org/simple/ 
Download error: [Errno 10061] No connection could be made because the target mac 
hine actively refused it -- Some packages may not be found! 
No local packages or download links found for pip 
Best match: None 
Traceback (most recent call last): 
    File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module> 
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')() 
    File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 
1712, in main 
    with_ei_usage(lambda: 
    File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 
1700, in with_ei_usage 
    return f() 
    File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 
1716, in <lambda> 
    distclass=DistributionWithoutHelpCommands, **kw 
    File "C:\Python27\lib\distutils\core.py", line 152, in setup 
    dist.run_commands() 
    File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands 
    self.run_command(cmd) 
    File "C:\Python27\lib\distutils\dist.py", line 972, in run_command 
    cmd_obj.run() 
    File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 
211, in run 
    self.easy_install(spec, not self.no_deps) 
    File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 
434, in easy_install 
    self.local_index 
    File "C:\Python27\lib\site-packages\setuptools\package_index.py", line 475, in 
fetch_distribution 
    return dist.clone(location=self.download(dist.location, tmpdir)) 
AttributeError: 'NoneType' object has no attribute 'clone' 
+0

먼저 체크 : \ 사용자 \ XYZ> 하나 이상을 부여해야 를 설치 핍 설치 요구 사항 ("pip help install"참조)' – kvivek

답변

1

난 당신을 시도하는 동안 생각이 든 파이썬 설치를 엉망 :

다음

내가 내 Windows cmd에 나타나는 오류입니다. 파이썬 (python.org)의 CPython 설치 프로그램으로 작업 할 수 있다고 확신하지만 (필자와 다른 많은 사람들이 한 것처럼), 처음부터 다시 시작하고 (파이썬 배포본 중 하나를 설치하는 것) 강력히 추천한다. 예를 들어, 몇 가지 더 많은 기능을 가질 수 :

핍을 비롯하여 몇 가지 추가 패키지가 설치되어 있습니다. 설치 관리자는 Windows PATH를 올바르게 설정합니다. 그래서, 설치 프로그램을 실행 한 후, 당신은 그냥 앞서 갈 수 cmd.exe를 시작하고 EPD의 무료 버전 here을 찾을 수 있습니다 python 또는 pip install ...

실행합니다. 나 자신도 EPD뿐만 아니라 파이썬 (x, y)에서도 좋은 경험을했다. Here은 표준 Python (x, y) 설치 프로그램이 가져 오는 "플러그인"목록입니다. Windows의 경우 EPD와 Python (x, y) 모두 32 비트 버전으로 만 사용할 수 있지만 Windows 64 비트 용 ActivePython은 무료입니다 (PyPM 패키지는 64 비트 용으로 비어 있지 않음). 필요에 따라 문제가되지 않을 수 있습니다.

1

나는 https://pypi.python.org/pypi/pip 에 거기에서 다운로드 할 수있는 타르가있다. 다운로드 후 "easy_install pip-1.3.1.tar.gz"를 Python \ Scripts 폴더의 명령 프롬프트에서 실행하십시오. 이 작업을 수행하는 것으로 보입니다. 이 도움이 되었기를 바랍니다.

2

저는 이것을 Windows 7 x64에서 작업하고 있습니다.

     Installing Python 2.7 

https://www.python.org/download/releases/2.7.2 -------- 윈도우 86 MSI 설치 (2.7.2) (SIG)

파이썬 2.7를 설치 한 후 (나는 C에서 기본적으로 설치 : \ python27) 그래서 너는 준비 됐어.

      **Installing PIP:** 

알려진 폴더에 저장

https://raw.github.com/pypa/pip/master/contrib/get-pip.py

get-pip.py 파일을 다운로드 : C : \ 핍 \

이동 Windows로 - 실행 - cmd를 입력합니다. exe

내부 cmd.EXE 유형 :

CD C : \의 python27 (또는 파이썬 설치 경로)

이 표시됩니다

C : \ python27 지금

(입력 위치를 경로를 기억 저장된 get-pip.py 사례 c : \ pip).

C : \ python27 \ python.exe를 C : \ 핍 \ get-pip.py

핍이 설치됩니다. 실행 - - 파이썬과 주사위와 지금

     Using Pip to Install Django 

Windows로 이동을 설치 cmd.exe를 입력

을 cmd.exe를 유형 내부 :

CD에 c : python27 \

당신이 표시됩니다 :

C : 지금

python27 \ 것은

을 입력

python.exe -m pip install xxxxxxx

Pip이 xxxxxx 원하는 패키지를 설치합니다.

예 : 장고 == 1.6.2

NOTE 설치 PIP : GUIDE 파이썬 THIS AND WINDOWS AT TOTALLY 초보자위한 것이다.

감사

[email protected] www.adtein.com

이 단계`C 할 수 있는지 여부를