pomodoro icon indicating copy to clipboard operation
pomodoro copied to clipboard

pip install fails on OSX

Open s10mcow opened this issue 6 years ago • 5 comments

screen shot 2017-12-26 at 9 36 57 am

s10mcow avatar Dec 26 '17 09:12 s10mcow

Hi, could you please retry with sudo?

sudo pip install -r requirements.txt
sudo python setup.py install

mehdidc avatar Dec 26 '17 11:12 mehdidc

screen shot 2017-12-26 at 11 08 18 am

s10mcow avatar Dec 26 '17 11:12 s10mcow

It seems to be related to OSX system integrity protection (SIP), according to https://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx-10-11. Perhaps one workaround (https://github.com/rg3/youtube-dl/issues/7139) is to use --user if you don't mind installing the app only for your user:

pip install --user -r requirements.txt
python setup.py install --user

Otherwise, I would suggest you to use python's homebrew (https://brew.sh/index.html) rather than the native python of OSX, it does not need sudo. To install it, you need :

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python

then you would need to install the app again.

mehdidc avatar Dec 26 '17 11:12 mehdidc

Thanks ill check it out and let you know! Thanks for the app and the article...

s10mcow avatar Dec 26 '17 11:12 s10mcow

Try to install in a virtualenv. http://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv

joydeep1701 avatar Dec 28 '17 05:12 joydeep1701