ubuntu 14.04python3でpip(またはpip3)を使ってパッケージをインストールする
私はpythonには新しく、パッケージのインストールには問題があります。私は似たような質問を見てきましたが、それが適切で最新のものかどうかは分かりません。
私はこれを動作させるために何をする必要があるのか分かりません。
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)
と私はいくつかのバージョンのPythonを持っています。私はパッケージ
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
をインストールしようとすると
python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
私は人々がログに行って、同様ことを掲示することを、同様のstackoverflowの質問で見ました。
------------------------------------------------------------
/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ではなく、HTTP上では、PyPIフェッチする必要があります。" のようなものを言いますしかし、私はそれを解決するために何をする必要があるか、それを本当に理解していません。
私の質問です。パッケージのpython3バージョンをインストールするためには何が必要ですか? pipをインストールする必要がありますか、またはpip3を使用する方が良いですか?
[PyPIでパッケージ 'copy'を見つけることができません](https://pypi.python.org/pypi/copy/)。これがあなたがインストールしたいパッケージであることは確かですか? –
@ NilsWernerと同様、インストールしようとしているパッケージが存在しないという問題がありました。これにより残りの問題は解決されます。 – edwinksl