LoginSignup
1
0

More than 5 years have passed since last update.

pipを7.1.0から9.0.1に更新した

Posted at

概要

久しぶりに使おうと思ったらだいぶ古いみたいだったので更新してみた。

Macでvirtualenv使っているよ。

更新内容はここ
https://pip.pypa.io/en/stable/news/

環境

  • OS X 10.11.6
  • pip 7.1.0 → 9.0.1

バージョン確認

$ pip -V
pip 7.1.0 from $VIRTUAL_ENV/lib/python2.7/site-packages (python 2.7)

$ pip list -o
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

更新する

$ pip install --upgrade pip
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 371kB/s
Installing collected packages: pip
  Found existing installation: pip 7.1.0
    Uninstalling pip-7.1.0:
      Successfully uninstalled pip-7.1.0
Successfully installed pip-9.0.1
$ pip -V
pip 9.0.1 from $VIRTUAL_ENV/lib/python2.7/site-packages (python 2.7)

なんか警告的なのが出た

$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.1)
setuptools (18.0.1)
wheel (0.24.0)

listのデフォルトフォーマットをcolumnsに変えるよ、この警告非表示にするには pip.conf 設定してねって感じなので言われたとおりにする。

pip.confをいじる

$VIRTUAL_ENV/pip.conf
[list]
format=columns
$ pip list
Package    Version
---------- -------
pip        9.0.1
setuptools 18.0.1
wheel      0.24.0

警告出なくなった。

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