[PYTHON] I got an error when pip install tweepy on macOS Sierra, so I dealt with it

solution

Add the --user option to pip

% pip install tweepy --user

Work history

Error when trying to install with PyCharm

Try running with sudo

% sudo pip install tweepy                                                                                                               Password:
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The directory '/Users/Artemis/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The directory '/Users/Artemis/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
.
.
.
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pygments'

Be careful with the version of pip-> Ignore it because it was annoying to upgrade last time Be careful with ownership Get angry with authority

Try adding the -H option to sudo

% sudo -H pip install tweepy                                                                                                            
.
.
.
OSError: [Errno 1] Operation not permitted: '/tmp/pip-SMqSdl-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

The error has changed but is not resolved

/ tmp / pip-SMqSdl-uninstall has root privileges, but sudo is attached ...

It seems that you can change the installation destination by adding the --user option to pip.

% pip install tweepy --user                                                                                                             You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting tweepy
  Downloading tweepy-3.5.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): requests>=2.4.3 in /Library/Python/2.7/site-packages (from tweepy)
Collecting six>=1.7.3 (from tweepy)
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting requests-oauthlib>=0.4.1 (from tweepy)
  Downloading requests_oauthlib-0.7.0-py2.py3-none-any.whl
Collecting oauthlib>=0.6.2 (from requests-oauthlib>=0.4.1->tweepy)
  Downloading oauthlib-2.0.1.tar.gz (122kB)
    100% |████████████████████████████████| 126kB 938kB/s
Installing collected packages: six, oauthlib, requests-oauthlib, tweepy
  Running setup.py install for oauthlib
Successfully installed oauthlib requests-oauthlib six-1.4.1 tweepy

did it!

Please point out any mistakes.

References

http://qiita.com/tmsanrinsha/items/d7b69bde61a55038c054 http://qiita.com/ronin_gw/items/cdf8112b61649ca455f5 http://tdoc.info/blog/2014/01/15/pip.html

Recommended Posts

I got an error when pip install tweepy on macOS Sierra, so I dealt with it
I got an error when pip install pandas on Mac, so I dealt with it
I got an SSL related error with pip install, so I solved it
Dealing with PermissionError [Error 1] for pip install -U pip on macOS Sierra
I get an error when trying to install maec 4.0.1.0 with pip
When I installed python on macOS and used it, I got an error when I put an https connection
I got an error when saving with OpenCV
I got a UnicodeDecodeError when pip install on ubuntu
A memorandum when an error occurs with pip install
I got an error when using Tensorboard with Pytorch
# Solution when pip install gives an error when using Anaconda on Windows 10
When I get an error with Pylint in Atom on Windows
When I get an error with PyInstaller
I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
I got an error when trying to install Xgboost and its solution
I can't install Dask with pip on Ubuntu
Eliminates SSL error when PIP Install on Windows.
Install openstack client from pip so you don't get an error on CentOS7
Workaround if you get an error when trying to install PySide with pip
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
Error with pip install
Precautions when using sqlite3 on macOS Sierra (10.12) with multiprocessing
Install tweepy with pip and use it for API 1.1
For those who are in trouble with an error when pip install xg boost
I couldn't install numpy using poetry on macOS Big Sur, so I forcibly avoided it
I got a Value Error when using JUMAN ++ with PyKNP
When moss with pip install
I cried with `pip install --upgrade pip` with Bad md5 hash for package, but it got better
I got an error when I tried to process luigi in parallel on windows, but the solution
I got an error when I ran composer global require laravel / installer
I got an error when I ran meteor add accounts-password and got hooked
I got stuck so I reviewed it
Proxy error when running "pip install"
Install Java2Python on macOS High Sierra (10.13)
I got stuck trying to install various things with Mac El captain pip, so make a note
SSL certificate related with pip install? Error
Error resolution when installing numba on macOS
I want to pip install with PythonAnywhere
scipy stumbles with pip install on python 2.7.8
How to install cx_Oracle on macOS Sierra
I can't install the package with pip.
I tried to publish my own module so that I can pip install it
I got an error when trying to run Hello World in Go language
I failed to install django with pip, so a reminder of the solution
Error when installing a module with Python pip
Run pip install on MacOS Python 3.7 or later
I get an error with all yum commands
Rollback processing when an error occurs with fabric
Install Python 3 on MacOS Catalina (with Homebrew only)
[Personal memo] pip install fails, so solve it
I get an error when installing scipy on t2.micro because I don't have enough memory
Make it easy to install the ROS2 development environment with pip install on Python venv
When I try to import pandas on macOS I get the error No module named'_bz2'
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
I get an error when I try to raise Python to 3 series using pyenv on Catalina