conda command
【conda】1.Create a new environment and install a package in it.We will name the environment snowflakes and install the package BioPythonconda create --name snowflakes biopython2.To use, or "activ...
【conda】
1.Create a new environment and install a package in it.
We will name the environment snowflakes and install the package BioPython
conda create --name snowflakes biopython
2.To use, or "activate" the new environment, type the following:
Windows: conda activate snowflakes
Linux and macOS: conda activate snowflakes
3.To see a list of all your environments, type:
conda info --envs
4.Change your current environment back to the default (base):
conda activate
5.delete an environment
conda remove -n snowflakes --all
【Managing Python】
1.Create a new environment named "snakes" that contains Python 3.5:
conda create --name snakes python=3.5
2.Activate the new environment:
Windows: activate snakes
Linux, macOS: source activate snakes
3.Verify which version of Python is in your current environment:
python --version
【Managin packages】
1.To find a package you have already installed, first activate the environment you want to search. Look above for the commands to activate your snakes environment.
2.Check to see if a package you have not installed named "beautifulsoup4" is available from the Anaconda repository (must be connected to the Internet):
conda search beautifulsoup4
Conda displays a list of all packages with that name on the Anaconda repository, so we know it is available.
3.Install this package into the current environment:
conda install beautifulsoup4
4.Check to see if the newly installed program is in this environment:
conda list
具体查看官网:https://conda.io/projects/conda/en/latest/user-guide/getting-started.html
更多推荐
所有评论(0)