A few more: matplotlib, zope.interface, xattr, six, scipy, pytz.Going down the list manually, the same thing happens with bdist-mpkg-0.5.0.Attempting to manually uninstall altgraph results in the same error above.Īny ideas how to proceed? Remember, I don't care about any one package I just want to nuke pip and start from scratch using Homebrew's Python. For some reason, I cannot chown the most problematic directory, /tmp: ~ $ sudo chown -R $ /tmpĤ) Finally, I tried manually uninstalling a package from further down the list and voila, I could easily do sudo pip uninstall virtualenv for example. The error messages persisted.ģ) I also tried chown-ing any directories that raised complaints (e.g., ~/Library/Caches/pip and some of its parents and children). Users who use MacPorts or HomeBrew may prefer to use the Ghostscript provided by these. Where altgraph is just the first pip package in pip list (keep that in mind).Ģ) I then tried pip freeze | xargs sudo -H pip uninstall -y, as the warning suggested, but that simply remove the warning. All install packages are developer-signed and notarized by Apple. " Operation not permitted: '/tmp/pip-p8yIlU-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/altgraph'")] If executing pip with sudo, you may want sudo's -H flag.įile "/Library/Python/2.7/site-packages/pip/basecommand.py", line 211, in mainĮrror: Operation not permitted: '/tmp/pip-p8yIlU-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/altgraph/_init_.py'"), ('/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/altgraph/_init_.pyc', '/tmp/pip-p8yIlU-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/altgraph/_init_.pyc', Please check the permissions and owner of that directory. The directory '/Users/smaniato/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. You should consider upgrading via the 'pip install -upgrade pip' command. You are using pip version 7.1.2, however version 8.0.2 is available. These are the most representative chunks of it: ~ $ pip freeze | xargs sudo pip uninstall -y I'm now trying to clean everything up and then install/link pip packages against Homebrew's Python.ġ) In many SO answers, people suggest doing: pip freeze | xargs sudo pip uninstall -y That doesn't work for me. And so I've been using sudo pip install since forever. I started using the system Python way before I found out about Homebrew. configure -with-libpcap=included in order to use the compatible version included in Nmap, or you should update the libpcap installed on your machine.Preface: My OS X Python installation is a mess. You may have to configure Nmap with the command. Also, on some newer Mac OS X versions, the libpcap version of the library provided by Apple may be too old. Note that on some older versions of Mac OS X, you may have to replace the command. If you're trying to use multiple package managers to maintain. I've run into very few difficulties this way, even before learning the port -t trick. Once you have installed Xcode and the command-line tools, follow the compilation instructions found in the section called “Linux/Unix Compilation and Installation from Source Code”. To be honest, I run with Fink, MacPorts and Homebrew all at once, with deference to MacPorts (for now anyway), and only using either of the other two to install things I can't get from MacPorts. You can install them by opening Xcode from the Applications folder, opening Preferencechoosing the Download header icon and clicking the Install button next to “ Command Line Tools”. Xcode installations don't always include the command line tools. Xcode is not installed by default, but can be downloaded free of At the very least, you will have to wait for PyPI updates to propagate to MacPorts or Homebrew, or fall back to using pip. These are nested solutions that will eventually fail, one way or another ( PEP 20 : flat is better than nested). Apple's developer tools that include GCC and the rest of the usual build Don't use Homebrew nor MacPorts, nor the preinstalled Python of macOS.
0 Comments
Leave a Reply. |