15
15

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.

You are using pip version 9.0.3, however version 18.1 is available.となったときの対応方法

Last updated at Posted at 2018-11-27

事象 : pipコマンドを使ったらYou are using pip version 20.1.1; however, version 20.2.4 is available.となった

  • 環境
    • Windows10 Pro 64bit バージョン1909
    • Python 3.8.5
# 仮想環境でMkDocsをインストールしたらなんか言われた
$ pip install mkdocs
# ...省略...
WARNING: You are using pip version 20.1.1; however, version 20.2.4 is available.
You should consider upgrading via the 'c:\path\to\mkdocs\scripts\python.exe -m pip install --upgrade pip' command.
(mkdocs)

原因 : バージョンが古いから

時がたっても原因は同じ

$ pip --version
pip 20.1.1 from c:\path\to\mkdocs\lib\site-packages\pip (python 3.8)
(mkdocs)

対応方法 : アップグレードする

やってから思った・・・仮想環境作る前にやっときゃよかった・・・と思いながら仮想環境の外でもアップグレードする・・・

$ python -m pip install --upgrade pip
Collecting pip
  Downloading pip-20.2.4-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-20.1.1
Successfully installed pip-20.2.4
(mkdocs)

# アップグレードした最初はウイルススキャンツールとかが動いて遅いことがある
$ pip --version
pip 20.2.4 from c:\path\to\mkdocs\lib\site-packages\pip (python 3.8)
(mkdocs)

事象 : pip3コマンドを使ったらYou are using pip version 9.0.3, however version 18.1 is available.となった

  • 環境
    • macOS Mojave バージョン10.14.1
    • Python 3.6.5
    • pip 9.0.3
$ pip3 install requests
# ...省略...
Successfully installed certifi-2018.10.15 chardet-3.0.4 idna-2.7 requests-2.20.1 urllib3-1.24.1
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

原因 : バージョンが古いから

$ pip3 --version
pip 9.0.3 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (python 3.6)

対応方法 : アップグレードする

$ pip3 install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 1.1MB/s 
Installing collected packages: pip
  Found existing installation: pip 9.0.3
    Uninstalling pip-9.0.3:
      Successfully uninstalled pip-9.0.3
Successfully installed pip-18.1

$ pip3 --version
pip 18.1 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip (python 3.6)
15
15
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
15
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?