7
3

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.

Python3.4以降のrequests対応

Last updated at Posted at 2017-02-16

Python3.4以降において,requestsをpip3等でインスールする際のエラー対応

めっちゃ困ったこと.

example.py
import requests
# ...

みたいなプログラムを作りたいときに,
スクリーンショット 2017-02-16 16.55.50.png
実行したら、こんなエラーが出てしまった...

No module named ... であるから,いつものように

sudo pip3 install requests

したのだが...
スクリーンショット 2017-02-16 16.56.39.png
またまたエラー...

なんか,これは3.4以降とubuntuとのバグらしい.

ちょっと調べてみると...

sudo apt-get install python3-requests

で解決されそう.

スクリーンショット 2017-02-16 17.01.14.png

今度は,うまく解決できたみたい.

♪───O(≧∇≦)O────♪

参考

how to install 'requests' module for 'python3'

7
3
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
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?