在ubuntu中安装pycharm、opencv2后。在pycharm环境中无法使用opencv,后来查资料显示OpenCV is not pip-installable. You’ll need to manually sym-link your cv2.so and cv.py files into the site-packages directory。
经查看在/usr/local/lib/python2.7/dist-packages文件夹下有cv2.so and cv.py
现在只需要在/usr/local/lib/python2.7/site-packages 和/usr/local/lib/python2.7/dist-packages之间建立链接即可
1 2 3 |
|
此时就可以使用了。
时间: 2024-10-11 17:44:20