当前位置:网站首页>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
边栏推荐
- Navicat连接Oracle数据库报错ORA-28547或ORA-03135
- Day 2 document
- 2048项目实现
- Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
- 4. 对象映射 - Mapping.Mapster
- 容斥原理 AcWing 890. 能被整除的数
- 7.Oracle-表结构
- Leetcode-6111: spiral matrix IV
- Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
- 高斯消元 AcWing 884. 高斯消元解异或線性方程組
猜你喜欢
2021apmcm post game Summary - edge detection
Sqlmap tutorial (II) practical skills I
论文阅读报告
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
MySQL advanced part 2: SQL optimization
1.15 - input and output system
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
什么是套接字?Socket基本介绍
Leetcode-6108: decrypt messages
高斯消元 AcWing 884. 高斯消元解异或線性方程組
随机推荐
How to understand the definition of sequence limit?
Leetcode dynamic programming
5.Oracle-表空间
MySQL advanced part 1: View
Niu Mei's math problems
How to generate an image from text on fly at runtime
2048项目实现
1.15 - input and output system
1.13 - RISC/CISC
Quickly use Amazon memorydb and build your own redis memory database
Open source storage is so popular, why do we insist on self-development?
Currently clicked button and current mouse coordinates in QT judgment interface
Is it impossible for lamda to wake up?
背包问题 AcWing 9. 分组背包问题
论文阅读报告
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
LeetCode 1200. Minimum absolute difference
MySQL advanced part 1: stored procedures and functions
Leetcode stack related