Setup Python Development Environment on Windows

741 0
Setup Python Development Environment on Windows

Hey guyz, In this post, NepKoder focuses on the development environment path setup tips – Python Development Environment Setup for windows system. To run Python code or script, you must have python accessible environment on your system. So, firstly you set up to python environment which is almost similar with JAVA_HOME setup process.

Python programming is another most popular programming language in world. You can also directly develop python programming using other IDE (integrated software environment) in windows. But, here I describe about python programming and setup procedure on windows that helps the beginners in python language.

Also Check: Setup JAVA_HOME Environment Variable on Windows 10 [Video]

Just follow below methods and setup to setup python environment. By using this trick you can access any python packages and script via Command prompt or python shell as well. If any problems found during this process, feel free and ask your question on comment section at last.

Steps to setup Python Environment on Windows

Step 1: Install Latest Version of Python Binaries from its official site

First of all, download the latest python bits from the official python homepage. (Download Link)
Once you’ve successfully run the python installer, you can find python application in your start menu containing Python command line and IDLE.

Step 2: Add Python Directory to your System path Environment Variable

In order to make it so you can access python via any command line prompt (CMD) that means, not just python command one. For this, you will need to add python directory on your system path environment variable that provides easier to access Python and helps to run scripts via command prompt, power shell or Git Bash.

Go to Computer or Control Panel >> System Properties >> Environment Variables and Select the PATH variable as shown in below image.

Now, Click Edit.

So, at the ending section of variable value with “;’, append the Python path after just “;’ (see below image)

Make sure you should include the Scripts in the path too even if it doesn’t exist yet – this is where your package management tools, unit testing and other python programs will live.
Now, you can check the python interpreter on CMD by typing python command.

Step 3: Install pip to manage your Python Packages

For the package management in python, pip is the one that doesn’t suck. Pip makes it trivial for us to install python packages and this is must have often if we are working with third party tools and libraries. If you don’t have the curl command on your system, just use your git or even your browser to download the source file mentioned in their instruction.

Step 4: Install virtualenv to create Local Python Environment for your projects

After complete installation of pip, you need to grab package for your project, i.e. virtualenv. It restores order to the universe by allowing you to create virtual python environments so that you don’t worry about version conflicts between projects. Install virtualenv via command line with below command.

C:> pip install virtualenv

That’s it, you’re done!!

Leave A Reply

Your email address will not be published.

Pin It on Pinterest