当前位置:网站首页>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
边栏推荐
猜你喜欢
Client use of Argo CD installation
中国剩余定理 AcWing 204. 表达整数的奇怪方式
博弈论 AcWing 891. Nim游戏
2021apmcm post game Summary - edge detection
5.Oracle-錶空間
SPI 详解
1.15 - input and output system
MySQL advanced part 1: View
Leetcode array operation
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
随机推荐
Sqlmap tutorial (II) practical skills I
[rust notes] 17 concurrent (Part 1)
Is it impossible for lamda to wake up?
[learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
[wustctf2020] plain_ WP
Open source storage is so popular, why do we insist on self-development?
Regulations for network security events of vocational group in 2022 Guizhou Vocational College skill competition
[leetcode] day95 effective Sudoku & matrix zeroing
Matrixdb V4.5.0 was launched with a new mars2 storage engine!
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
Winter vacation water test 1 Summary
MySQL advanced part 1: View
How to generate an image from text on fly at runtime
How to understand the definition of sequence limit?
LeetCode-61
LeetCode 0107. Sequence traversal of binary tree II - another method
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
11-gorm-v2-03-basic query