当前位置:网站首页>Install opencv -- CONDA to establish a virtual environment and add the kernel of this environment in jupyter
Install opencv -- CONDA to establish a virtual environment and add the kernel of this environment in jupyter
2022-07-05 06:22:00 【Cold leaves elegant_】
First step : Create a myopencv Virtual environment for
win+R -->cmd
conda create --name myopencv python=3.7

The second step : download OpenCV-python
The download page :https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
find OpenCV, Because the current python Version is 3.7, The operating system is 64 position , So download 
Download the installation file locally (D:\Anaconda3\envs\myopencv)
stay cmd Activate the environment on the command line
activate myopencv
pip install D:\Anaconda3\envs\myopencv\opencv_python-4.4.0-cp37-cp37m-win_amd64.whl

After entering myopencv Of Python Environmental Science 
I found that I did not install numpy
sign out Python Environmental Science , stay myopencv Installation in the environment numpy
exit()
pip install numpy

Once again into the myopencv Of Python Environmental Science
import cv2

Installation successful !!!
sign out Python Environmental Science , View all packages included in the environment
exit()
pip list

Found no ipykernel, Installation
pip install ipykernel

Installation successful
Activate the default environment (base), View the current environment ( Yes * Is the current environment )
activate base
conda env base
Enter to add to jupyter Of kernel Environment , Input
python -m ipykernel install --name myopencv
Installed kernelspec myopencv in C:\ProgramData\jupyter\kernels\myopencv
take kernel Add to jupyter Of kernel In the list 
see jupyter Of kernel list 
Get into jupyter View in 
Reference material :
- https://zhuanlan.zhihu.com/p/37050300
- https://zhuanlan.zhihu.com/p/37708958
- https://www.jianshu.com/p/7a996a7f1c9e
- https://blog.csdn.net/zhaoguanghe/article/details/103389302
边栏推荐
- 求组合数 AcWing 889. 满足条件的01序列
- SQLMAP使用教程(一)
- Leetcode array operation
- 2022-5-第四周日报
- 论文阅读报告
- 栈 AcWing 3302. 表达式求值
- Multi screen computer screenshots will cut off multiple screens, not only the current screen
- [rust notes] 13 iterator (Part 2)
- Quickly use Amazon memorydb and build your own redis memory database
- QQ computer version cancels escape character input expression
猜你喜欢

Appium foundation - use the first demo of appium

SPI details

求组合数 AcWing 888. 求组合数 IV
![[wustctf2020] plain_ WP](/img/66/fdf7649359f36444703ff2279562e6.jpg)
[wustctf2020] plain_ WP

Appium automation test foundation - Summary of appium test environment construction

Liunx starts redis

MySQL advanced part 2: storage engine

实时时钟 (RTC)

SQLMAP使用教程(二)实战技巧一

Single chip computer engineering experience - layered idea
随机推荐
Chapter 6 relational database theory
C - XOR to all (binary topic)
Leetcode-6108: decrypt messages
博弈论 AcWing 893. 集合-Nim游戏
MySQL advanced part 2: storage engine
Leetcode backtracking method
Quickly use Amazon memorydb and build your own redis memory database
5.Oracle-錶空間
C job interview - casting and comparing - C job interview - casting and comparing
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
Client use of Argo CD installation
【LeetCode】Day95-有效的数独&矩阵置零
[rust notes] 16 input and output (Part 2)
MySQL advanced part 2: the use of indexes
求组合数 AcWing 889. 满足条件的01序列
Leetcode-1200: minimum absolute difference
Presentation of attribute value of an item
安装OpenCV--conda建立虚拟环境并在jupyter中添加此环境的kernel
our solution
2048项目实现