当前位置:网站首页>[work direction] CONDA common command summary
[work direction] CONDA common command summary
2022-06-09 07:00:00 【shuaixio】
1. conda Introduce
conda Is in linux、windows and macOS Open source software running on Package management Systems and Environmental management System
Package management and environmental management :conda Can be installed quickly 、 Run and update packages and their dependencies ;conda Environment is a directory containing all installation packages and dependencies , Different environments are independent of each other
2. conda and anaconda/miniconda/pip The relationship between
anaconda With pre-installed conda、python And many of the packages And scientific computing tools ,conda yes anaconda default python Package and environmental management tools ;
miniconda Contains only conda and python And necessary dependencies , yes anaconda A lightweight alternative to
conda It can be installed separately Do not rely on anaconda/miniconda Whether to install ,conda Focus on environment and package management
stay ~/anaconda/envs I can see conda New virtual environment
conda Have both pip Package management capabilities , It also has vitualenv Environmental management functions , So functionally conda It can be seen as pip and vitualenv The combination of ;
pip install python software package , and conda Install package , This may include software written in any language
anaconda: conda + python + third-party sw miniconda: conda + python conda: packages + virtual envirenments pip: python packages
3. conda Common commands
3.1 Version information
View version information
conda --version # conda -Vto update conda edition
conda update conda
3.2 Environmental management
See all environments
conda info --env # conda info -eStart the virtual environment
conda activate env_name # conda activate The default entry is conda base Based on the environmentExit virtual environment
conda deactivate # or conda deactivate env_nameCreating a virtual environment , Install the software package at the same time , Version can be specified
conda create --name virtual_env_name python=3.8 numpy scipyaccording to requirements.txt Creating a virtual environment
conda create --name virtual_env_name --file requirements.txtrequirements.txt give an example
# This file may be used to create an environment using: # conda create --name env_name --file requirements.txt -c pytorch # platform: linux-64 cudatoolkit=10.2.89 numpy=1.19.2 python=3.8.8 pytorch=1.8.0 tensorboard=2.4.1export requirements.txt file
conda list -e > requirements.txt # or --exportCopy an environment
conda create --name new_env_name --clone old_env_nameDelete an environment
conda remove --name your_env_name --all
3.3 Package management
View the installed packages in the current environment
conda listFind the available versions of the package
conda search beautifulsoup4 conda search --full-name pythonInstall package
conda install package_name conda install -c channel_name package_name # Install the package from the specified library -c for --channel conda install -c conda-forge bottleneck # install bottleneckconda If it cannot be installed, it can be used pip Carry out the installation such as pip install numpy
Install local package
conda install --use-local ~/Downloads/a.tar.bz2Remove package
conda uninstall package_name # Unload a package conda remove package_name # uninstall Another name for aliasUninstall the package in the specified environment
conda remove --name env_name packageUse requirements.txt Mass installation packages
conda install --yes --file requirements.txtAdd : Use in a specific virtual environment conda install/pip install The installed packages are only in the current environment
Reference article :
conda What is it? conda and pip The difference between
requirements.txt Batch processing
conda install and pip install The difference between
conda install -c
conda Brief introduction
requirements.txt Use
created by shuaixio, 2022.06.03
边栏推荐
- Kotlin 's Null safety
- What should Parker hydraulic motor pay attention to?
- InfoWorld文章丨将数据编排技术用于AI模型训练
- UML Series (27) Architecture Modeling - Deployment
- No editing software is needed to teach you how to edit videos simply and quickly
- 287. finding duplicates
- 209. minimum length subarray
- 【快捷记录,方便CV】TeachYourselfSQL_MySQL
- make install 安装的库,如何卸载
- 257. all paths of binary tree
猜你喜欢

云原生的本手、妙手和俗手
![[PPO attitude control] Simulink simulation of UAV attitude control based on reinforcement policy optimization PPO training](/img/f7/032eb82cdf0bc5c564cc509d02b0c6.png)
[PPO attitude control] Simulink simulation of UAV attitude control based on reinforcement policy optimization PPO training

纯英式 VoxEdit 大赛来啦

Camtasia 2022 release update function introduction

使用postman模拟携带token的请求

10. 正则表达式匹配

UML series articles (19) basic behavior - interaction diagram

pycharm 和mysql做学生信息管理系统问题求解

Chapter_ 06 changing the contrast and brightness of an image

Chapter_ 02 how to scan and view images, query tables and time metrics in opencv
随机推荐
Error (119013): Current license file does not support the EP4CE10F17C8 device解决方法
DeFi 去風險:分析去中心化系統中的系統性風險
Chapter_ 04 image operation
UML系列文章(20)基本行为---活动图
5. Multimedia Foundation
UML系列文章(19)基本行为---交互图
【快捷记录,方便CV】TeachYourselfSQL_MySQL
UML系列文章(21)高级行为---事件和信号
Ruoyi mind map
[raspberry pie 4B deep learning garbage classification] Chap.3 raspberry pie installs opencv and tests the garbage classification of the real-time video stream of the video interface [deep learning mo
【SDU项目实训2019级】router-link的:to 和@click谁先执行
Camtasia 2022发布更新功能介绍
Kotlin 's Null safety
[SDU project training level 2019] router link: who will execute to or @click first
【工作向】conda常用命令汇总
What should Parker hydraulic motor pay attention to?
UML series articles (19) basic behavior - interaction diagram
Simple analysis of performance inflection point
Quit smoking log_ 01 (day_02)
[C language] summary of document knowledge points