当前位置:网站首页>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
边栏推荐
- What is socket? Basic introduction to socket
- SPI 详解
- MySQL advanced part 1: stored procedures and functions
- Leetcode-22: bracket generation
- Leetcode-6110: number of incremental paths in the grid graph
- Data visualization chart summary (II)
- [learning] database: several cases of index failure
- [2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
- 2022/6/29-日报
- 2021apmcm post game Summary - edge detection
猜你喜欢

快速使用Amazon MemoryDB并构建你专属的Redis内存数据库

Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software

Error ora-28547 or ora-03135 when Navicat connects to Oracle Database

1.15 - input and output system

MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理

Quickly use Amazon memorydb and build your own redis memory database
![[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian](/img/f1/e7a8a1a31bc5712d9f32d91305a2b0.jpg)
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
![[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis](/img/20/826cc9d514496955a557439881234d.jpg)
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis

Sqlmap tutorial (1)

Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
随机推荐
Simple selection sort of selection sort
New title of module a of "PanYun Cup" secondary vocational network security skills competition
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
[rust notes] 16 input and output (Part 1)
MySQL advanced part 1: stored procedures and functions
Leetcode-6109: number of people who know secrets
[BMZCTF-pwn] ectf-2014 seddit
Leetcode-1200: minimum absolute difference
Sqlmap tutorial (1)
求组合数 AcWing 889. 满足条件的01序列
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
Chapter 6 relational database theory
Bit of MySQL_ OR、BIT_ Count function
__ builtin_ Popcount() counts the number of 1s, which are commonly used in bit operations
背包问题 AcWing 9. 分组背包问题
There are three kinds of SQL connections: internal connection, external connection and cross connection
Leetcode array operation
【LeetCode】Day94-重塑矩阵
[rust notes] 14 set (Part 2)
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software