LoginSignup
11
13

More than 5 years have passed since last update.

pipインストールで嵌った話

Posted at

現象

・python distribute_setup.pyでeasy_installをインストールできない
・easy_install pipでpipをインストールできない

解決までの流れ

pipをインストールするためにまずeasy_installを入れる必要がある。

http://python-distribute.org/distribute_setup.py
を右クリックでC直下に保存。

そして、コマンドプロンプトでC直下まで行き、python distribute_setup.py でインストールできる、、、はずができない。

Downloading http://pypi.python.org/packages/source/d/distribute/distri9.tar.gz
Traceback (most recent call last):
File "distribute_setup.py", line 556, in <module>
sys.exit(main())
File "distribute_setup.py", line 552, in main
tarball = download_setuptools(download_base=options.download_base)
File "distribute_setup.py", line 215, in download_setuptools
dst = open(saveto, "wb")
OSError: [Errno 22] Invalid argument: 'C:\\distribute-0.6.49.tar.gz'

となってしまう。
だから、
https://pypi.python.org/packages/source/d/distribute/
まで飛んで、distribute-0.6.49.tar.gzをC直下にダウンロード。

もう一度python distribute_setup.pyを実行すると無事にインストール成功。

そして、easy_install pipを実行すればインストールできる、、、はずができない。

どうやらPATHが通ってないらしい。

SET PATH=%PATH%;C:\Python34\Scripts

で無事PATHが通り、pipのインストール成功。

11
13
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
13