Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails on OSX #12

Open
s10mcow opened this issue Dec 26, 2017 · 5 comments
Open

pip install fails on OSX #12

s10mcow opened this issue Dec 26, 2017 · 5 comments

Comments

@s10mcow
Copy link

s10mcow commented Dec 26, 2017

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

@mehdidc
Copy link
Owner

mehdidc commented Dec 26, 2017

Hi, could you please retry with sudo?

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

@s10mcow
Copy link
Author

s10mcow commented Dec 26, 2017

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

@mehdidc
Copy link
Owner

mehdidc commented Dec 26, 2017

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 (ytdl-org/youtube-dl#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.

@s10mcow
Copy link
Author

s10mcow commented Dec 26, 2017

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

@joydeep1701
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants