2016-08-18 11 views
1

우분투 14.04python3

내가 파이썬에 새로운 그리고 난 문제가 설치 패키지를 데에 PIP (또는 pip3)와 패키지를 설치합니다. 나는 비슷한 질문을 보았지만 관련성이 있고 최신인지를 밝히기가 어렵다.

이 기능을 사용하려면 무엇을해야하는지 잘 모르겠습니다.

pip --version 
The program 'pip' is currently not installed. You can install it by typing: 
sudo apt-get install python-pip 


pip3 --version 
pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4) 

그리고 저는 최신 버전의 파이썬이 있습니다.

python3 
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4] on linux 

나는 사람들이 로그에 가서 그뿐만 아니라 게시 것을, 나는 비슷한 유래 질문에서 본 패키지

pip3 install copy 
Downloading/unpacking copy 
Could not find any downloads that satisfy the requirement copy 
Cleaning up... 
No distributions at all found for copy 
Storing debug log for failure in /home/ben/.pip/pip.log 

를 설치하려고 할 때.

------------------------------------------------------------ 
/usr/bin/pip3 run on Thu Aug 18 20:25:27 2016 
Downloading/unpacking copy 
Getting page https://pypi.python.org/simple/copy/ 
Could not fetch URL https://pypi.python.org/simple/copy/: 404 Client    Error: Not Found 
Will skip URL https://pypi.python.org/simple/copy/ when looking for download links for copy 
Getting page https://pypi.python.org/simple/ 
URLs to search for versions for copy: 
* https://pypi.python.org/simple/copy/ 
Getting page https://pypi.python.org/simple/copy/ 
Could not fetch URL https://pypi.python.org/simple/copy/: 404 Client Error: Not Found 
Will skip URL https://pypi.python.org/simple/copy/ when looking for download links for copy 
Could not find any downloads that satisfy the requirement copy 
Cleaning up... 
Removing temporary dir /tmp/pip_build_ben... 
No distributions at all found for copy 
Exception information: 
Traceback (most recent call last): 
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main 
status = self.run(options, args) 
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run 
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
File "/usr/lib/python3/dist-packages/pip/req.py", line 1178, in prepare_files 
url = finder.find_requirement(req_to_install, upgrade=self.upgrade) 
File "/usr/lib/python3/dist-packages/pip/index.py", line 277, in find_requirement 
raise DistributionNotFound('No distributions at all found for %s' % req) 
pip.exceptions.DistributionNotFound: No distributions at all found for copy 

다른 대답은 "당신은 HTTPS를 통해 pypi이 아닌 HTTP를 가져올 필요가있다." 같은 말 그러나 나는 그것을 이해하기 위해해야 ​​할 일이 무엇인지 이해하지 못합니다.

제 질문은; 패키지의 python3 버전을 설치하려면 어떻게해야합니까? pip를 설치해야합니까, 아니면 pip3을 사용하는 것이 더 좋습니까?

+1

[PyPI에서 패키지'copy'를 찾을 수 없습니다.] (https://pypi.python.org/pypi/copy/). 이것이 당신이 설치하고자하는 꾸러미라는 것을 확신합니까? –

+0

@NilsWerner와 마찬가지로 설치하려는 패키지가 존재하지 않는다는 문제점이 있습니다. 이것은 나머지 질문을 논리적으로 만든다. – edwinksl

답변

0

여러 버전의 Python을 사용하는 경우 사용할 Python 버전의 디렉토리를 탐색하고 'Scripts'폴더로 이동하여 pip 명령을 실행하십시오. 희망이 작동합니다.

0

이 패키지는 PyPi에서 사용할 수 없습니다. 무엇을 설치하려고합니까? 펫의 버전이 상당히 오래되었습니다 - 1.5.4. current version is 8.1.2.

pip install -v을 사용하면 설치 중에 자세한 정보를 얻을 수도 있습니다.