How to add Anaconda installation directory to your PATH variables
Adding Anaconda to your PATH variable will give you the ability to run a conda environment in any cmd or Powershell terminal window. Below are instructions on how to do that.
1. open environmental variables window
Do this by either going to my computer and then right-clicking the background for the context menu > "properties". On the left side open "advanced system settings" or just search for "env..." in the start menu ([Win]+[s] keys).
Then click on environment variables
If you struggle with this step read this explanation.
2. Edit Path in the user environmental variables section and add three new entries:
D:\path\to\anaconda3
D:\path\to\anaconda3\Scripts
D:\path\to\anaconda3\Library\bin
D:\path\to\anaconda3
should be the folder where you have installed anaconda
Click [OK] on all opened windows.
If you did everything correctly, you can test a conda
command by opening a new powershell window.
conda --version
This should output something like: conda 4.8.2