-
Notifications
You must be signed in to change notification settings - Fork 3k
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 --upgrade setuptools #5329
Comments
I am facing the same issue. Any solution to this?? |
You're trying to modify your OS-installed Python. Don't try that. I suggest you get a separate Python installation (I do this) -- |
@pradyunsg But I don't really understand what do you mean "separate Python installation"? Thank you! |
I'm facing the same problem and was wondering if anyone figured out a fix? Using also the following: |
This comment has been minimized.
This comment has been minimized.
@shihs You shouldn't run pip with sudo. https://stackoverflow.com/questions/21055859/what-are-the-risks-of-running-sudo-pip Homebrew is a tool to install developer tools on MacOS. Running |
Hey @pradyunsg |
Issue with scrapy installation i have resolved with bellow command. sudo pip install scrapy --upgrade --ignore-installed |
@shihs @NanheKumar, it works, thanks. |
Hello from 2019 guys |
@dbof10 the error message from the OS makes it pretty clear that there is a permission problem, i'm affraid further comments will dilute @pradyunsg's explanation into many more comments as such perhaps this issue should be closed / locked ? |
Agreed. The root cause here is that you should never run pip as root (either directly or via sudo) as it will cause issues. |
Locking since I don't want to address this more times -- just, don't use pip with sudo or as root. See #5329 (comment). |
Description:
I am trying to upgrade setuptools. but am stuck with an error.
What I've run:
pip install --upgrade setuptools
sh-3.2# pip install --upgrade setuptools
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl
matplotlib 1.3.1 requires nose, which is not installed.
Installing collected packages: setuptools
Found existing installation: setuptools 18.5
Uninstalling setuptools-18.5:
Could not install packages due to an EnvironmentError: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.py', '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.py', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/markers.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.pyc', '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.pyc', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib/init.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib', "[Errno 1] Operation not permitted: '/private/tmp/pip-uninstall-2rF8Fc/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'")]
Please let me know how to fix this.
The text was updated successfully, but these errors were encountered: