a blog for those who code

Thursday, 17 September 2015

How to set up PythonPath in Windows 10

In this post we are going to show how to set up PythonPath (Python Path) system variable for Windows 10. At first you need to download and install Python in your Windows 10 system. We have installed Python 3.5.0 in our system.

When you will try to install Python 3.5.0 in Windows 10, the default location of installation will be  C:\Users\User_Name\AppData\Local\Programs\Python\Python35-32 as shown below.


But you can change the path of the installation using Customize Installation along with that check the "Add Python 3.5 to Path" checkbox. We will be installing Python 3.5.0 in path C:\Python35\.

To add PythonPath in Windows 10, at first you need to click on Action Center on right bottom corner and then click on All Settings.

It will open up a Window, in which you need to click on System. In System click on About and scroll down to the bottom and then click on System Info.


It will open up a page that contains all details about computer Windows 10 is operating on. On the left you will see few links, in that click on Advanced system settings. It will open up the System Properties in that click on Environment Variables. And then click on new System Variable. In that window add PYTHONPATH as Variable name and C:\Python35\Lib;C:\Python35\DLLs; as Variable Value as shown below.


Now when you type python in Command line you will get an output as shown below.


Please Like and Share CodingDefined.com Blog, if you find it interesting and helpful.

1 comment: