使用 Anaconda Env Python 路径安装 Opencv 3.4 - "No Module found"
Installed Opencv 3.4 with Anaconda Env Python Path - "No Module found"
我使用这个 guide
从源安装了 opencv 3.4.2
我做的一个重大改变是将 python-executable
指向我的 anaconda3 env
python3.6.
配置成功。但是,当我激活 anaconda 环境并尝试导入 cv2.我仍然得到 no module named cv2
。
但是安装的opencv在conda list
中显示如下:
conda list -n anaconda-env | grep -i cv
输出为:
libopencv 3.4.2 h765d7f9_1
opencv 3.4.2 py36h40b0b35_1
py-opencv 3.4.2 py36h765d7f9_1
任何人都可以帮助我知道出了什么问题吗?我知道 anaconda 频道有一个 opencv pacakage。但是它只有opencv3.1
The conda-forge
organization contains one repository for each of the installable packages. Such a repository is known as a feedstock. A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services.
如果您想查看 opencv
的原料,可以找到 here。
要在像 anaconda 这样的 conda 环境中安装来自 conda-forge 的软件包,请使用:conda install -c conda-forge opencv
我使用这个 guide
从源安装了opencv 3.4.2
我做的一个重大改变是将 python-executable
指向我的 anaconda3 env
python3.6.
配置成功。但是,当我激活 anaconda 环境并尝试导入 cv2.我仍然得到 no module named cv2
。
但是安装的opencv在conda list
中显示如下:
conda list -n anaconda-env | grep -i cv
输出为:
libopencv 3.4.2 h765d7f9_1
opencv 3.4.2 py36h40b0b35_1
py-opencv 3.4.2 py36h765d7f9_1
任何人都可以帮助我知道出了什么问题吗?我知道 anaconda 频道有一个 opencv pacakage。但是它只有opencv3.1
The
conda-forge
organization contains one repository for each of the installable packages. Such a repository is known as a feedstock. A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services.
如果您想查看 opencv
的原料,可以找到 here。
要在像 anaconda 这样的 conda 环境中安装来自 conda-forge 的软件包,请使用:conda install -c conda-forge opencv