当前位置:网站首页>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
边栏推荐
- Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
- [rust notes] 15 string and text (Part 1)
- Modnet matting model reproduction
- AE tutorial - path growth animation
- MySQL advanced part 2: storage engine
- Leetcode divide and conquer / dichotomy
- Leetcode-1200: minimum absolute difference
- [moviepy] unable to find a solution for exe
- In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
- Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
猜你喜欢

SPI 详解

Gaussian elimination acwing 884 Gauss elimination for solving XOR linear equations

Day 2 document

5. Oracle TABLESPACE

Open source storage is so popular, why do we insist on self-development?

Client use of Argo CD installation

Data visualization chart summary (I)

实时时钟 (RTC)

阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长

区间问题 AcWing 906. 区间分组
随机推荐
2048项目实现
Leetcode-6109: number of people who know secrets
Multi screen computer screenshots will cut off multiple screens, not only the current screen
Record the process of configuring nccl and horovod in these two days (original)
AE tutorial - path growth animation
One question per day 1020 Number of enclaves
Simple selection sort of selection sort
Niu Mei's math problems
MPLS experiment
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
927. Trisection simulation
Sqlmap tutorial (1)
[leetcode] day94 reshape matrix
Chart. JS - Format Y axis - chart js - Formatting Y axis
Chapter 6 relational database theory
传统数据库逐渐“难适应”,云原生数据库脱颖而出
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
2021apmcm post game Summary - edge detection
Leetcode stack related
求组合数 AcWing 887. 求组合数 III