anaconda的python环境配置,,关键字:anacon
anaconda的python环境配置,,关键字:anacon
关键字:anaconda opencv3 yum反悔
我在anaconda的python环境下尝试运行catch_usb_video.py脚本(来源:http://www.cnblogs.com/neo-T/p/6426029.html),结果报以下错误:
OpenCV(3.4.1) Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /opt/conda/conda-bld/opencv-suite_1527005194613/work/modules/highgui/src/window.cpp, line 618
Traceback (most recent call last):
File "catch_viedo.py", line 30, in <module>
CatchUsbVideo("截取视频流", int(sys.argv[1]))
File "catch_viedo.py", line 6, in CatchUsbVideo
cv2.namedWindow(window_name)
cv2.error: OpenCV(3.4.1) /opt/conda/conda-bld/opencv-suite_1527005194613/work/modules/highgui/src/window.cpp:618: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow
按照网上搜索到的结果:
1-安装libgnomeui-devel : yum install -y libgnomeui-devel
结果:这个其实只适用Ubuntu,随即就被我删除了,也正是因为这样,我才学会yum是怎么删除包(反悔),且把该包一并下载安装的依赖包都删除,
显示安装那个包的历史yum history list libgnomenui-devel
Loaded plugins: fastestmirror, langpacks
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
4 | install libgnomeui-devel | 2018-07-19 20:59 | Install | 89
history list
然后 yum history undo 4,4是ID那一列
2-安装gtk2-devel,结果还是没解决,也是反悔安装了
通过比较其他人在网上反馈的情况,我尝试重装opencv3,所以我执行了以下命令:
1.conda remove opencv
2.conda list | grep opencv 紧接着我又查了conda还包含哪些opencv包,不知道这两个包有没有影响,反正也删除了,如果有人也有的话可以尝试先不删除,看看效果再决定(^_^留言告诉我结果)
libopencv 3.4.1 h1a3b859_1 defaults
py-opencv 3.4.1 py36h0676e08_1 defaults
3.conda remove libopencv py-opencv
4.conda install opencv3
至此,原来的py脚本运行一切正常。
anaconda的python环境配置
相关内容
- Python实践练习:电话号码和 E-mail 地址提取程序,,题目
- python nose测试框架全面介绍十---用例的跳过,pythonnose
- Python图像处理库(PIL),,Python Ima
- [python] 词云:wordcloud包的安装、使用、原理(源码分析
- 安装python、pycharm 和anaconda,, 由于刚开始学习p
- VSCode的Python扩展下程序运行的几种方式与环境变量管理
- Python3 tkinter基础 Tk quit 点击按钮退出窗体,,?python :
- python 3.x报错:No module named 'cookielib'或No m
- Python创建ES索引,,# pip inst
- 十一.python面向对象(接口),.python面向对象,一. 接口接口
评论关闭