LoginSignup
1
0

More than 3 years have passed since last update.

python3.5 > site-packagesを消してしまった時の対応

Last updated at Posted at 2020-12-07

python3.5>site-packagesを消してしまった時の対応

モジュールが消えてしまうので、No modue named~が出るようになる
pip3.5はそのまま残っているが、そのまま
pip3.5 install ~
などと実行しても

No module named ‘pkg_resources’

と出てしまいだめ

■easy installを使う

wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip
unzip distribute-0.7.3.zip && cd distribute-0.7.3
mkdir /usr/lib/python3.5/site-packages
python3 setup.py install
easy_install pip

これでpipを使うことができる

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