当前位置:网站首页>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.6
To delete an environment
conda remove -n your_env_name --all
# or
conda remove --name your_env_name --all
View the created environment
conda env list
matters 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 》
边栏推荐
- Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
- Oauth2.0 - explanation of simplified mode, password mode and client mode
- Push box games C #
- Nacos service installation
- Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样
- Shell conditional statement
- 23 design models
- Kubesphere - set up redis cluster
- phpstudy设置项目可以由局域网的其他电脑可以访问
- Judge whether the date time exceeds 31 days
猜你喜欢
In depth analysis of kubernetes controller runtime
10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”
Important knowledge points of redis
Kubesphere - set up redis cluster
Scripy learning
Oauth2.0 - explanation of simplified mode, password mode and client mode
scroll-view指定滚动元素的起始位置
数值法求解最优控制问题(一)——梯度法
Kubernetes notes (10) kubernetes Monitoring & debugging
Migrate data from Mysql to tidb from a small amount of data
随机推荐
学习笔记 -- k-d tree 和 ikd-Tree 原理及对比
PMP笔记记录
冒泡排序的简单理解
PMP notes
Mysql database
SSH link remote server and local display of remote graphical interface
Selenium - by changing the window size, the width, height and length of different models will be different
Oauth2.0 - Introduction and use and explanation of authorization code mode
Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Important knowledge points of redis
10万奖金被瓜分,快来认识这位上榜者里的“乘风破浪的姐姐”
opencv鼠标键盘事件
YOLOV2学习与总结
IE browser flash back, automatically open edge browser
Page text acquisition
Opencv mouse and keyboard events
Luogu problem list: [mathematics 1] basic mathematics problems
Judge whether the date time exceeds 31 days
Zhiniu stock project -- 05