用于python安装的opencv

时间:2016-09-09 23:06:10

标签: python opencv

我已按照此处[http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/]中的说明操作,以便安装python3。我正在使用Ubtuno 12.04。检查我的python版本后,我有:

$ python --version
Python 2.7.3

$ python3 --version
Python 3.2.3

在第2步中,我使用:

$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py

但是在运行第二行后我收到以下错误:

/tmp/tmp4ijset/pip.zip/pip/_vendor/pkg_resources/__init__.py:80: UserWarning: Support for Python 3.0-3.2 has been dropped. Future versions will fail here.
Traceback (most recent call last):
 File "get-pip.py", line 19177, in <module>
main()
File "get-pip.py", line 194, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
File "/tmp/tmp4ijset/pip.zip/pip/__init__.py", line 16, in <module>
File "/tmp/tmp4ijset/pip.zip/pip/vcs/mercurial.py", line 9, in <module>
File "/tmp/tmp4ijset/pip.zip/pip/download.py", line 36, in <module>
File "/tmp/tmp4ijset/pip.zip/pip/utils/ui.py", line 15, in <module>
File "/tmp/tmp4ijset/pip.zip/pip/_vendor/progress/bar.py", line 48
empty_fill = u'∙'
                  ^
SyntaxError: invalid syntax
  • Q1:请问这个错误的来源是什么?如何在我的机器上安装pip3来解决它?
  • Q2:如何在python 3下安装openCV?

0 个答案:

没有答案