LoginSignup
2
1

More than 5 years have passed since last update.

ModuleNotFoundError: No module named 'pkg_resources'

Posted at

不具合

python3仮想環境を構築しようとしたら、pipで不具合。

実行コマンド
pip3 install virtualenv
実行結果
Traceback (most recent call last):
  File "/usr/bin/pip3", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

解決策

実行コマンド
pacman -R python3-pip
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
pacman -S python3-pip

動作確認

実行コマンド
pip3 --version
実行結果
pip 9.0.1 from /usr/lib/python3.6/site-packages (python 3.6)

環境

  • Windows 10
  • MSYS2

出典

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