当前位置:网站首页>CONDA create use virtual environment
CONDA create use virtual environment
2022-06-12 06:17:00 【Caicaicaicaicaicai】
conda Creating and using virtual environments
Common commands
conda list # See which packages are installed
conda env list or conda info -e See what virtual environments exist today
conda upadte conda Check to update the current conda
The role of virtual environment
If it's on a computer , Want to develop multiple different projects , You need to use different versions of the same package , If you use the above command , Install or update in the same directory , The new version will override the previous version , Other projects won't work . Solution : A virtual environment effect : The virtual environment can build independent python Running environment , The running environment of a single project does not affect other projects .
Creating a virtual environment
1. establish
conda create -n xxx python=3.8 #xxx Name the virtual environment you want to create
2. Use activation ( Or switch different python edition ) Virtual environment for
python --version # You can check the current python Version of
Linux: source activate your_env_name( Virtual environment name )
Windows: activate your_env_name( Virtual environment name )
3. Install additional packages in the virtual environment
conda install -n your_env_name [package]
Or use after activating the environment :
pip install [package]
4. Shut down the virtual environment
Linux: source deactivate
Windows: deactivate
5. Delete virtual environment
conda remove -n your_env_name( Virtual environment name ) --all
conda remove --name your_env_name package_name # Delete a package in the environment
##6. Rename the virtual environment
1. Clone the existing one into a new environment
conda create -n new_env --clone old_env
2. Delete the original virtual environment
conda remove -n old_env --all
边栏推荐
- RNN implementation regression model
- Summary of some problems in sensor bring up
- In unity3d, billboard effect can be realized towards another target
- Image processing: image[:,:,:: -1], image[:,: -1,:], image[:,: -1,:]
- User login 【 I 】
- 为什么联合索引是最左匹配原则?
- Directx11 advanced tutorial cluster based deffered shading
- MNIST handwritten data recognition by CNN
- Leetcode 第 80 場雙周賽題解
- Leetcode sword finger offer II 033 Modified phrase
猜你喜欢

夜神模拟器adb查看log

Performance optimization metrics and tools

Chartextcnn (Ag dataset - news topic classification)

RNN model

Houdini terrain creation

Using hidden Markov model to mark part of speech

sqlite交叉编译动态库

Sensor bringup 中的一些问题总结

(UE4 4.27) customize globalshader

Cause analysis of motion blur / smear caused by camera shooting moving objects
随机推荐
Chartextcnn (Ag dataset - news topic classification)
Unity C script implements AES encryption and decryption
Unity3d script captures a sub area from the screen and saves it as texture2d, which is used to save pictures and maps
MySQL master-slave, 6 minutes to master
Android studio mobile development creates a new database and obtains picture and text data from the database to display on the listview list
Guns framework multi data source configuration without modifying the configuration file
. Net core and Net framework comparison
Directx11 advanced tutorial PBR (1) summary of physical phenomena of light
E-book analysis
Unity surface shader with template buffer
Image processing: image[:,:,:: -1], image[:,: -1,:], image[:,: -1,:]
Error the main class com xxx. yyy. Application
sqlite交叉编译动态库
Simple spiral ladder generation for Houdini program modeling
Understand Houdini's (heightfield) remap operation
Leetcode-1043. Separate arrays for maximum sum
获取图片的尺寸
Logistic regression model
Sensor bringup 中的一些问题总结
Unity implements smooth interpolation