How to declare the Python 3.7 in my path directory in Windows 10 after installation of Anaconda3?

Viewed 396

I have installed Anaconda3 (2019) which comes with Python 3.7.

However, when I run from cmd python I am informed that I run Python 3.6.5:

(base) C:\WINDOWS\system32>python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

I have declared Anaconda3 in my Path variable:

enter image description here

The python.exe is contained in a directory that I can not declare in my Path:

enter image description here

enter image description here


The directories under Anaconda3 are the following:

enter image description here

There is no bins subdirectory here.

But there is a python.exe file:

enter image description here

I have declared its path in the Path variable:

enter image description here

1 Answers

For anaconda3, the path to python is: /anaconda3/bin/python instead of /anaconda3/pkgs/... (as you did). Try the former one.

Also, make sure that you restart your terminal after changing your PATH.

Note: you can always use which python in your terminal to check your python location.

Related