Skip to main content

I am Learning Python 1 - Adding Environment Variable for Python in Windows 10 Home

I'm trying to learn Python this year (2018). The reasons are to explore its uses in data science, which is a skill that's becoming increasingly important since last 4-5 years.

A disclaimer first - I'm not a programmer by profession and have taken some programming courses in college. But as saying goes these days - everybody's a programmer, either by choice or just have to pick up the skill. And it's a good skill to have!

That's my motivation for learning Python. One of the first things I realized is that I need some online classes and a local environment to practice. The best resource for the online material is Python classes by Google, which you can access here.

And the best version to learn (at least if you're reading this in 2018) is 2.7.x. If you want to try your hand at later versions, you can go ahead. You can download it here.

Once you've installed it on Windows (I don't have a mac!) you would want to execute Python code from Window's command line. Here I had to do some digging so I'm sharing what I did.

So Step 1 - install the Python version.

Step 2 - Change the environment variable to execute Python code on the command line in Windows.

These steps are for Windows 10 Home.

Right-click on 'This PC' and select Properties. It should open a new window for 'System'. Select 'Advanced system settings'. Then click on 'Environment Variables' shown in the first screenshot. And then change the 'Path' environment variable under user variables for your user and add the three entries as below.


This should help you run Python from Windows command line. And the best way to check if everything is working; by going to the command prompt ('cmd') and type Python, you should see something as below:

If you encounter any issues, I think the best way is to Google or use StackOverflow. But these steps helped a complete amateur like me to get started. Enjoy!

Comments

Popular posts from this blog

Scuba Diving 36 feet deep in Goa (Surreal but Nice!)

"Surreal but nice" that's what Hugh Grant's character managed to blurt out, mesmerized by the beauty of Julia Roberts (in the movie Notting Hill ). And this was the exact thought that was running in my mind as I was rising from a depth of over 35 feet under water in the Arabian Sea near Goa, India. I had just finished my first dive (rather second dive of my first dive) with grouper fish, tailor fish - and many more - knelt at the bottom of the ocean floor and touched a ship wreck that sunk more than sixty years ago! It was a surreal experience that has left me with a feeling of self-satisfaction as well as endless curiosity. The two feelings very rarely take a house together in my mind. Probably the last time they shacked up together was when I got an admit for my Master's from State University of New York . The feeling of gliding underwater among the fishes, water pressure trying to burst your ears drums, flying over huge boulders of rocks under sea; like an un...

How not to read History? Avoiding Sophistry, Deceitfulness, and Irrational Narratives

Introduction A few days ago I wrote on how a contemporary Dharmic mind is enslaved with various narratives meant to degrade the tradition of Dharmic spiritualism (or Hinduism) and relegate the spiritual path as non-sensical, patriarchal, and regressive (i.e. against modernity). I've three examples below that show the eagerness in contemporary conversations to push this narrative. Since free speech and vaad (Sanskrit: वाद, discussion) are two-way streets so it's well within my right to share my opinion based on sound reasoning and well-established examples. And my opinion doesn't rely on the play of words (Sanskrit: सामान्य छल, quibble)) or a mere attack on the opposition (Sanskrit: वितंडा, cavil/sophistry). Just a side note, these categorizations are based on the ancient  Nyaya philosophy composed by Akṣapāda Gautama between the 6th century BCE and the 2nd century CE. Example 1 -  वितंडा / Sophistry Buddhism and Sanatana Dharma have a long history of coexistence and assim...

9000 days of destiny

I was wondering about my doubts and prejudices I have at this stage of life. It is in human trait to suffer from these emotions. But history has given enough evidence to form a case when humans have risen beyond their flaws I recently saw the movie "Invictus". It is based on the true events that lead to South African national rugby team, the Springboks, winning the 1995 rugby world cup. The movie shows how two persons from completely different backgrounds rose above their beliefs and prejudices to unite a country broken by apartheid. These were South African President Mr. Nelson Mandela and the captain of the South African rugby team Francois Pienaar.  Clint Eastwood directed this movie. It stars Morgan Freeman as Nelson Mandela and Matt Damon as Francois Pienaar. The movie is thought provoking and inspires you to dream big. It in its' limited time depicts the segregation created by decades of apartheid in South Africa. However I was captivated by the song played ...