Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
- ===> To create an environment:
- = conda create --name myenv
- ===> Viewing a list of your environments
- = conda info --envs
- or
- = conda info list
- ===> Viewing a list of the packages in an environment
- = If the environment is not activated, in your terminal window or an Anaconda Prompt, run:
- conda list -n myenv
- = If the environment is activated, in your terminal window or an Anaconda Prompt, run:
- conda list
- = To see if a specific package is installed in an environment, in your terminal window or an Anaconda Prompt, run:
- conda list -n myenv scipy
- ===> Setting environment variables
- = First, create your environment and activate it:
- conda create -n test-env
- conda activate test-env
- = To list any variables you may have, run:
- conda env config vars list
- = To set environment variables, run :
- conda env config vars set my_var=value
- = Once you have set an environment variable, you have to reactivate your environment:
- conda activate test-env
- Using pip in an environment
- To deactivate conda
- conda deactivate
- To jump into an environment
- conda activate superdatascience
- Update conda to the current version. Type the following:
- conda update conda
- Verify that the new environment was installed correctly:
- conda env list
- To remove an environment, in your terminal window or an Anaconda Prompt, run:
- conda remove --name superdatascience --all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement