当前位置:网站首页>Create your own deep learning environment with CONDA
Create your own deep learning environment with CONDA
2022-07-03 06:28:00 【Happy breeder】
The training of deep learning , Reasoning , Testing is inseparable python Language , We usually use conda Tools to build an environment , After installation conda in the future , By default, the corresponding version of pip And python,conda The higher the version , Corresponding python And pip The higher the version .
Catalog
attach :pip Install and uninstall
The environment create
After installation, use the command conda activate Activate conda Built in environment , namely base Environmental Science , This is installing conda Environment created automatically when . If you want to create other environments , Then use the following command to create :
# Create a your_env_name Environment
conda create --name your_env_name
# or
conda create --n your_env_name
# Create specific python Version environment
conda create --name your_env_name python=2.7
conda create --name your_env_name python=3.6To delete an environment
conda remove -n your_env_name --all
# or
conda remove --name your_env_name --allView the created environment
conda env listmatters needing attention
Note that you are creating conda It is best to specify the environment used python edition , Not in one conda Install multiple in the environment python, Otherwise, it is easy to get confused . After creating your own environment , Input python View the environment you created python Is the version correct , You can type python or python3, Check whether the version used is consistent , occasionally python The default is python2.7 Version, not python3.X edition , If the versions are inconsistent , Then you must pay attention to using when installing related libraries Python2 still python3. Because to use pip Install related libraries , At this time, you can enter pip See which one corresponds python edition , Here's the picture ,pip and pip3 The corresponding python Version inconsistency , Then you should pay attention when installing , To use pip still pip3. Under normal circumstances, you create conda The default environment is to use pip Of , instead of pip3, namely : Suppose you specify the python edition , So use pip -V see pip You can see the used python The version is and specified python edition .

attach :pip Install and uninstall
sudo apt install pip-python # Use later pip Installation Library
sudo apt install pip-python3 # Use later pip3 Installation Library
sudo apt remove pip-python # Delete pip
sudo apt remove pip-python3 # Delete pip3
More about conda And pip Please refer to my other blog post 《conda And pip The difference between 》
边栏推荐
猜你喜欢

CKA certification notes - CKA certification experience post

Project summary --04

23 design models

Kubesphere - set up redis cluster

技术管理进阶——你了解成长的全貌吗?

Docker advanced learning (container data volume, MySQL installation, dockerfile)

Oauth2.0 - Introduction and use and explanation of authorization code mode

Project summary --2 (basic use of jsup)

数值法求解最优控制问题(一)——梯度法

Cesium 点击获三维坐标(经纬度高程)
随机推荐
从小数据量 MySQL 迁移数据到 TiDB
Project summary --04
UNI-APP中条件注释 实现跨段兼容、导航跳转 和 传参、组件创建使用和生命周期函数
How to scan when Canon c3120l is a network shared printer
Numerical method for solving optimal control problem (I) -- gradient method
Zhiniu stock project -- 05
YOLOV3学习笔记
【5G NR】UE注册流程
Interesting research on mouse pointer interaction
conda和pip的区别
What's the difference between using the Service Worker Cache API and regular browser cache?
Creating postgre enterprise database by ArcGIS
使用conda创建自己的深度学习环境
Kubesphere - build MySQL master-slave replication structure
Learning notes -- principles and comparison of k-d tree and IKD tree
In depth analysis of kubernetes controller runtime
Selenium ide installation recording and local project maintenance
剖析虚幻渲染体系(16)- 图形驱动的秘密
Shell conditional statement
PMP notes