python安装cv2模块_python - OpenCV已成功安装但未导入错误:没有名为“ cv2”的模块 - 堆栈内存溢出...
所以我已經從Ubuntu 14.04上成功地從源代碼安裝了OpenCV 3.2.0 ,并且出現此錯誤:
(cv2) mona@pascal:~/computer_vision/opencv-3.2.0/build$ /usr/local/bin/opencv_version
3.2.0
(cv2) mona@pascal:~/computer_vision/opencv-3.2.0/build$ python
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'cv2'
>>> import cv
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'cv'
我可能會錯過的sudo make install步驟之后該怎么辦?
不幸的是,這里也沒有cv2:
mona@pascal:~/computer_vision/opencv-3.2.0/build$ ls /usr/local/lib/python3.4/dist-packages/
clonevirtualenv.py numpy protobuf-3.1.0.post1.dist-info stevedore virtualenvwrapper
django numpy-1.12.0.egg-info protobuf-3.1.0.post1-py2.7-nspkg.pth stevedore-1.20.0.dist-info virtualenvwrapper-4.7.2-py3.4.egg-info
Django-1.10.5.dist-info olefile __pycache__ tensorflow virtualenvwrapper-4.7.2-py3.4-nspkg.pth
easy_install.py olefile-0.44-py3.4.egg-info PyYAML-3.12-py3.4.egg-info tensorflow_gpu-0.12.1.dist-info wheel
external OleFileIO_PL.py scipy theano wheel-0.29.0.dist-info
google pbr scipy-0.18.1-py3.4.egg-info Theano-0.8.2-py3.4.egg-info yaml
image pbr-1.10.0.dist-info setuptools virtualenv-15.1.0.dist-info
image-1.5.5-py3.4.egg-info PIL setuptools-33.1.1.dist-info virtualenv_clone-0.2.6-py3.4.egg-info
keras Pillow-4.0.0-py3.4.egg-info six-1.10.0.dist-info virtualenv.py
Keras-1.2.0-py3.4.egg-info pkg_resources six.py virtualenv_support
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的python安装cv2模块_python - OpenCV已成功安装但未导入错误:没有名为“ cv2”的模块 - 堆栈内存溢出...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux django搭建网站,Lin
- 下一篇: pythonpptx 楷体_python