8
0

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 5 years have passed since last update.

pycharmでpipを実行するとAttributeError

Posted at

現象

Pythonを入れなおした際、Pycharmでpipしようとすると以下のエラー。

AttributeError: module 'pip' has no attribute 'main'

cmdからは問題なく実行できる。

日本語の記事が見つからなかったので備忘録がてら。

環境

Python: 3.6.5
pip: 10.0.1
Pycharm 2017.3.3

対応

pipの9→10のバージョンアップでモジュールの構成が変わったことによる不具合っぽい。
Pycharmのバージョンを最新版にupdateしたらすんなり解決。

参考

PIP module has no attribute “main”
Pycharm Virenv AttributeError: module 'pip' has no attribute 'main' occured!

8
0
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?