前提・実現したいこと
PythonでTwitterのAPIを利用したいのですがエラーが出て躓いています。
自分のコード(一部)
from requests_oauthlib import OAuth1Session
import json, config
ーーーーーーーーーーーーーー
Pythonのコードを実行すると以下のエラーが出ます。
Traceback (most recent call last):
File "myTimeline.py", line 2, in <module>
from requests_oauthlib import OAuth1Session
ImportError: No module named requests_oauthlib
おそらくpip install requests requests_oauthlibこれがインストールできていないと思いターミナルで実行しました。
発生している問題・エラーメッセージ
pip install requests requests_oauthlib これをターミナルで実行すると以下のエラーが出てインストールできません。 ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/urllib3-1.25.3.dist-info' Consider using the `--user` option or check the permissions.
どうすればインストールできるのでしょうか。