当前位置:网站首页>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
边栏推荐
- How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
- 阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
- [learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
- What is socket? Basic introduction to socket
- Open source storage is so popular, why do we insist on self-development?
- Basic explanation of typescript
- Applicable to Net free barcode API [off] - free barcode API for NET [closed]
- 2022/6/29-日报
- MySQL advanced part 2: storage engine
- Modnet matting model reproduction
猜你喜欢
什么是套接字?Socket基本介绍
Matrixdb V4.5.0 was launched with a new mars2 storage engine!
LeetCode-54
【LeetCode】Easy | 20. Valid parentheses
Quickly use Amazon memorydb and build your own redis memory database
SPI 详解
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
5. Oracle TABLESPACE
MySQL advanced part 2: MySQL architecture
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
随机推荐
Leetcode recursion
【LeetCode】Day94-重塑矩阵
LeetCode-61
区间问题 AcWing 906. 区间分组
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
[learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
MySQL advanced part 2: storage engine
TypeScript 基础讲解
Leetcode-6108: decrypt messages
SPI details
How to generate an image from text on fly at runtime
4. Object mapping Mapster
C Primer Plus Chapter 15 (bit operation)
博弈论 AcWing 891. Nim游戏
安装OpenCV--conda建立虚拟环境并在jupyter中添加此环境的kernel
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
栈 AcWing 3302. 表达式求值
Leetcode array operation
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian