惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

博客园 - guolongnv

useful Claude code skills & plugins bell in bash python编程提升1(答案篇) python编程提升1(问题篇) How p4 get authorized How to format a jason file in vim How to open utfb8 in linux env json 文件查看和编辑 How to change the color display of directories in putty? Screen frequency used commamd How to load yaml file in python How to get IPv4 address Basic mysql command 4. Median of Two Sorted Arrays 42.trapping-rain-water 3.lengthOfLongestSubstring 1.two sum pandas教程 How to make mail more effectively?
Anaconda usage tips
guolongnv · 2022-10-19 · via 博客园 - guolongnv

usage: conda [-h] [-V] command ...

conda is a tool for managing and deploying applications, environments and packages.

Options:

positional arguments:
command
info Display information about current conda install.
help Displays a list of available conda commands and their help strings.
list List linked packages in a conda environment.
search Search for packages and display their information. The input is a Python regular expression. To perform a search with a search string that starts with a -, separate the
search from the options with --, like 'conda search -- -h'. A * in the results means that package is installed in the current environment. A . means that package is not
installed but is cached in the pkgs directory.
create Create a new conda environment from a list of specified packages.
install Installs a list of packages into a specified conda environment.
update Updates conda packages to the latest compatible version. This command accepts a list of package names and updates them to the latest versions that are compatible with all
other packages in the environment. Conda attempts to install the newest versions of the requested packages. To accomplish this, it may update some packages that are
already installed, or install additional packages. To prevent existing packages from updating, use the --no-update-deps option. This may force conda to install older
versions of the requested packages, and it does not prevent additional dependency packages from being installed. If you wish to skip dependency checking altogether, use
the '--force' option. This may result in an environment with incompatible packages, so this option must be used with great caution.
upgrade Alias for conda update. See conda update --help.
remove Remove a list of packages from a specified conda environment.
uninstall Alias for conda remove. See conda remove --help.
config Modify configuration values in .condarc. This is modeled after the git config command. Writes to the user .condarc file (/home/qqin/.condarc) by default.
clean Remove unused packages and caches.
package Low-level conda package utility. (EXPERIMENTAL)

optional arguments:
-h, --help Show this help message and exit.
-V, --version Show the conda version number and exit.

other commands, such as "conda build", are available when additional conda
packages (e.g. conda-build) are installed

1.Exporting the virtual environmment to *.yaml file

source activate <environment>
conda env export | tee <environment.yml>

2. Create a virtual environmment

conda create --name <<env name>

Bse on environmment  file

conda env create -f <<environment.yml> -n <<env name>

With a specific package 

onda create -n  <env name> python

With a specifc version of a package

conda create -n <env name> python=3.7

3.Update conda

conda env update -f <environment config file >

4.Install packages

For an exsiting env

conda install --name <myenv> <package name>

For current env

conda install <<pkg name>

For a specific version

conda install <pkg name>=<version>

 5.List envs

6.Update ENV path

 ~/.condarc

channels:
  - conda-forge
  - defaults
envs_dirs:
  - <env path>/anaconda/envs
pkgs_dirs:
  - <env path>/anaconda/pkgs

 7.Remove env

conda remove --name myenv --all