(tensorflow_venv) ➜ city-simulator git:(master) ✗ pip3 install opencv-python DOPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \Ĭompiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.Ĭompiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation)Ĭompiling the C compiler identification source file "CMakeCCompilerId.c" failed.Ĭompiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc DPYTHON3_PACKAGES_PATH=~/miniforge3/envs/python38/lib/python3.8 \ DPYTHON3_INCLUDE_DIR=~/miniforge3/envs/python38/include/python3.8 \ This is what I came up with: cmake -DCMAKE_BUILD_TYPE=Release \ I documented my procedure here and will add more in the future. I got opencv and conda working correctly. I finished the step 6 but when i try to import cv2, No module named 'cv2' and i checked my ~/tensorflow_macos_venv/lib/python3.8/site-packages cv2 is not here cv2 should now be in ~/tensorflow_macos_venv/lib/python3.8/site-packages/cv2 for python to import.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |