0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

pip install で依存ライブラリのインストールに失敗したときの対処

Last updated at Posted at 2020-03-23

環境

Python3.4.3
Windows10 64bit

やったこと

$ pip install Sphinx
~~ 中略 ~~
Collecting colorama>=0.3.5; sys_platform == "win32" (from Sphinx)
  Downloading https://files.pythonhosted.org/packages/31/cb/88c908c1be067fb6bacd3d7488ccab1a212533767b951933aac3d22648e2/colorama-0.4.2-py2.py3-none-any.whl
colorama requires Python '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*' but the running Python is 3.4.3

インストール失敗。
Downloadingの行からcolorama-0.4.2がインストールされていることがわかるが、最後の行でpython3.4は対応していないことがわかる。

対処

$ pip install colorama==0.3.9

PyPIのcoloramaのサイトからPython3.4.3に対応しているバージョンをインストールする。

$ pip --no-cache-dir install Sphinx
~~ 中略 ~~
Successfully installed Jinja2-2.10.3 MarkupSafe-1.1.1 Pygments-2.3.1 Sphinx-1.8.5 alabaster-0.7.12 babel-2.8.0 certifi-2019.11.28 chardet-3.0.4 docutils-0.15.2 idna-2.8 imagesize-1.2.0 packagi
ng-20.3 pyparsing-2.4.6 pytz-2019.3 requests-2.21.0 six-1.14.0 snowballstemmer-2.0.0 sphinxcontrib-websupport-1.1.2 typing-3.7.4.1 urllib3-1.24.3

インストールできた。

0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?