当前位置:网站首页>pycharm配置opencv库
pycharm配置opencv库
2022-07-24 18:08:00 【我菜就爱学】
我走的弯路: 对于刚刚入手OpenCV 的小白,又第一次接触pycharm编译器。所以在配置opencv库的时候遇到很多问题。
如下:
- 1、如果直接在Terminal运行界面输入【pip install opencv-python】,因为这个访问的是国外的,所以下载的速度非常慢,最后也会保存。但是后面备注清华的镜像,就会加快下载速度:【pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple】。后续添加库可以使用同样的道理
当然:我这样尝试,依然import cv2报错 - 2、用最老土的办法:【file->settings->Project->Python Interpreter->+ ->搜索opencv-python->Inatsll Package】然后就是漫长的等待…
同样:我这样尝试,依然import cv2报错 - 3、这次我听取同学的建议,重新创建项目,然后把该勾选的都勾选上。接着,重复步骤2。
同样:我这样尝试,依然import cv2报错 - 等等。。。。。
成功解决: 最后,我用下面的方法解决
- 1、首先:把Python Interpreter里面的镜像换成清华的

- 2、接着按如下操作(参考其他大佬的)


再次导入:
完成:
测试:
import cv2 as cv
src=cv.imread("E:\\Pec\\12.jpg")
cv.namedWindow("input image")
cv.imshow("input image",src)
cv.waitKey(0)
cv.destroyAllWindows()
print("成功打印")

边栏推荐
- Opencv picture rotation
- Ship new idea 2022.2 was officially released, and the new features are really fragrant!
- Handwritten blog platform ~ the next day
- Section 11 cache avalanche, hot data failure follow Daewoo redis ------- directory post
- [network security] analysis vulnerability of website Middleware
- Use prometheus+grafana to monitor MySQL performance indicators
- Awk from getting started to getting into the ground (19) awk extensions make awk even stronger
- 单细胞代码解析-妇科癌症单细胞转录组及染色质可及性分析1
- 6126. 设计食物评分系统
- es(1)
猜你喜欢

es(1)

Inherit, override, overload

Brats18 - Multimodal MR image brain tumor segmentation challenge continued

Shengxin commonly used analysis graphics drawing 02 -- unlock the essence of volcano map!

Definition and storage of adjacency table and adjacency storage of directed graph and undirected graph

生信常用分析图形绘制02 -- 解锁火山图真谛!

Install jumpserver

获取同程(艺龙)酒店数据

Laravel笔记-用户登录时密码进行RSA加密(提高系统安全性)

What are the pitfalls from single architecture to distributed architecture?
随机推荐
Awk from getting started to getting into the ground (19) awk extensions make awk even stronger
T245982 「KDOI-01」醉花阴
C language programming training topics: K characters in left-handed string, little Lele and Euclidean, printing arrow pattern, civil servant interview, poplar matrix
Common questions of testers during interview
Opencv picture rotation
面会菜评论分析
0630~职业素养课
单细胞代码解析-妇科癌症单细胞转录组及染色质可及性分析1
如何向 google colab 快速上传文件
0623~放假自习
深入解析著名的阿里云Log4j 漏洞
Section 11 cache avalanche, hot data failure follow Daewoo redis ------- directory post
头文件是必须的吗?跟一跟编译过程~~~
0625~<config>-<bus>
Just one dependency to give swagger a new skin, which is simple and cool!
Growth of operation and maintenance Xiaobai - week 8 of Architecture
使用Prometheus+Grafana监控MySQL性能指标
0629 ~ SaaS platform design ~ global exception handling
船新 IDEA 2022.2 正式发布,新特性真香!
Single cell code analysis - gynecological cancer single cell transcriptome and chromatin accessibility analysis 1