当前位置:网站首页>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
边栏推荐
- MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
- [rust notes] 16 input and output (Part 1)
- Shutter web hardware keyboard monitoring
- WordPress switches the page, and the domain name changes back to the IP address
- MySQL advanced part 1: triggers
- LeetCode 1200. Minimum absolute difference
- Client use of Argo CD installation
- Groupbykey() and reducebykey() and combinebykey() in spark
- AE tutorial - path growth animation
- Data visualization chart summary (II)
猜你喜欢
随机推荐
Shutter web hardware keyboard monitoring
What's wrong with this paragraph that doesn't work? (unresolved)
Niu Mei's math problems
MySQL advanced part 1: triggers
Multi screen computer screenshots will cut off multiple screens, not only the current screen
P3265 [jloi2015] equipment purchase
Record the process of configuring nccl and horovod in these two days (original)
TypeScript 基础讲解
Usage scenarios of golang context
Is it impossible for lamda to wake up?
Quickly use Amazon memorydb and build your own redis memory database
Client use of Argo CD installation
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
论文阅读报告
Leetcode-31: next spread
Leetcode-6110: number of incremental paths in the grid graph
Winter vacation water test 1 Summary
Leetcode divide and conquer / dichotomy
Sqlmap tutorial (II) practical skills I