Advertisement
_Black_Panther_

Anaconda Command

Jul 7th, 2022 (edited)
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
  2.  
  3.  
  4. ===> To create an environment:
  5. = conda create --name myenv
  6.  
  7. ===> Viewing a list of your environments
  8. = conda info --envs
  9. or
  10. = conda info list
  11.  
  12. ===> Viewing a list of the packages in an environment
  13. = If the environment is not activated, in your terminal window or an Anaconda Prompt, run:
  14. conda list -n myenv
  15. = If the environment is activated, in your terminal window or an Anaconda Prompt, run:
  16. conda list
  17. = To see if a specific package is installed in an environment, in your terminal window or an Anaconda Prompt, run:
  18. conda list -n myenv scipy
  19.  
  20.  
  21.  
  22. ===> Setting environment variables
  23.  
  24. = First, create your environment and activate it:
  25. conda create -n test-env
  26. conda activate test-env
  27.  
  28. = To list any variables you may have, run:
  29. conda env config vars list
  30. = To set environment variables, run :
  31. conda env config vars set my_var=value
  32. = Once you have set an environment variable, you have to reactivate your environment:
  33. conda activate test-env
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. Using pip in an environment
  58.  
  59.  
  60.  
  61. To deactivate conda
  62. conda deactivate
  63.  
  64. To jump into an environment
  65. conda activate superdatascience
  66.  
  67. Update conda to the current version. Type the following:
  68. conda update conda
  69.  
  70. Verify that the new environment was installed correctly:
  71. conda env list
  72.  
  73.  
  74. To remove an environment, in your terminal window or an Anaconda Prompt, run:
  75.  
  76. conda remove --name superdatascience --all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement