3π
β
For Windows 10 users:
- Press Windows logo on Toolbar.
- Type and open
Edit the system environment variables
. - In
Advance
tab pressEnvironment Variables
button. - For
System variables
pressNew
button. Variable name
will be PYTHONHOME andVariable value
will the path where thepython.exe
is located (i.e. c:/users/administrator/anaconda3/envs/my_env_name). Then pressOK
.- Again for
System variables
pressNew
button. Variable name
will be PYTHONPATH andVariable value
will the path ofsite-packages
folder (i.e. C:/Users/Administrator/anaconda3/envs/my_env_name/Lib/site-packages). Then pressOK
.
π€isifzade
Source:stackexchange.com