![]() My second tutorial will come next week where I’ll demonstrate how to install OpenCV 3 with Python 3.5 bindings on macOS.This first tutorial covers how to install OpenCV 3 with Python 2.7 bindings on macOS.In order to help resolve any issues, problems, or confusion when installing OpenCV with Python bindings on macOS Sierra (or greater) I’ve decided to create two hyper-detailed tutorials: ![]() If you’ve tried to use one of my previous tutorials on installing OpenCV on your freshly updated Mac (Sierra or greater) you likely ran into a few errors, specifically with the QTKit.h header files.Īnd even if you were able to resolve the QTKit problem, you likely ran into more issues trying to get your CMake command configured just right. I’ll admit it: Compiling and installing OpenCV 3 on macOS Sierra was a lot more of a challenge than I thought it would be, even for someone who has a compiled OpenCV on hundreds of machines over his lifetime. I also removed the directory recursively: sudo rm -rf /tmp/pip-1UeP4t-uninstall/īut those kind of directories reproduce right away.Click here to download the source code to this post OSError: Operation not permitted: '/tmp/pip-1UeP4t-uninstall/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/lib-dynload/Python-2.7.10-py2.7.egg-info' OSError: Operation not permitted: '/var/folders/dd/70hgtbs50hl5sr13h93gzzm80000gn/T/pip-7ByYw9-uninstall/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/lib-dynload/Python-2.7.10-py2.7.egg-info' Lastly, I tried to uninstall python by pip uninstall python, If executing pip with sudo, you may want sudo's -H flag. Please check the permissions and owner of that directory. The directory '/Users/jack/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. ![]() OSError: Operation not permitted: '/tmp/pip-sIVZu9-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info' OSError: Operation not permitted: '/var/folders/dd/70hgtbs50hl5sr13h93gzzm80000gn/T/pip-yKfQhH-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info' OSError: Operation not permitted: '/tmp/pip-JhNitO-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info' **OSError: Operation not permitted: '/var/folders/dd/70hgtbs50hl5sr13h93gzzm80000gn/T/pip-BDWfhx-uninstall/System/Library/Frameworks/amework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'** ![]() This is due to the fact that uninstalling a distutils project will only partially uninstall the project.įile "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in mainįile "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in runįile "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in installįile "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstallįile "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in removeįile "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/_init_.py", line 267, in renamesįile "/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/shutil.py", line 302, in moveįile "/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2įile "/System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat ![]() Installing collected packages: numpy, opencv-pythonįound existing installation: numpy 1.8.0rc1ĭEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. $ pip install opencv-python Collecting opencv-python When install opencv-python on my mac I get an error message: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |