Install python, or do my how to install python 3.7 windows 10. This can be accomplished using the python installer at python.org. Setting up Python 3.7 on windows 10, the non-developer tutorial for those who don’t want to figure out every little aspect, and prefer having someone teach them the path to success. Read more of my python struggles here.

Python 3.7 is rad — I wanted to originally use it but I realized I was not able to shorten links with the tinyurl library, so I reverted back to a version that allowed me to use the tinyurl library (python 2.7).

After you download the latest version of python, like python 3.7, you have a little bit of a journey ahead of you. Let’s begin.

Python requires a type of installer to gain access to complex libraries written in god only knows… The goal is you don’t need to write these complex libraries from scratch, you can call them up, with non-complex code, and get away with practical murder from an automation perspective.

I’m excited about the fact that I can build what I want in a few lines of code — and so far it makes sense. But to get to the point of making your apps, we need some foundation, a means of downloading, there are a few methods, let’s start with the pip method first.

Now now… if you’re new… Don’t worry about the latest version. You will not need 3.7 for awhile. Download python 2.7 first and find an updated version of 2.7. Otherwise you will be playing with a lot of environment variables and dependencies, which make it complicated to learn fast.

Seriously, 2.7 is easier for newbs. Go there first. I’m learning on 2.7 and after writing this blog for 3.7, I realized I wanted to be on a later version to use fun stuff like building short links with tinyurl in python.

Setting up Python 3.7 Pip on Windows 10

Next steps are rather easy, you can follow along, and setup your python pip installer — without breaking a sweat, on windows 10.

Start by getting →get-pip.py from https://bootstrap.pypa.io/get-pip.py

Right click the website and save this to your desktop.

Double click the get-pip.py file, and wait for the installer to complete. That’s all, now pip works. Check it by following this next step.

Testing PIP is working with your new python 3.7 install on windows 10

Open your cmd terminal thingy, hit the windows key, type cmd, hit enter. Your terminal should automatically popup.

How to quickly access your command prompt or CMD on windows 10.

Type “pip” in CMD to learn more about pip

/!\ Before do anything, install or upgrade the Setuptools Python package. It contain compatibility improvements and add automatic use of compiler
pip install — upgrade setuptools

install microsoft visual C++ 14 — setting up visual studio build tools 2017

Installing microsoft visual c++ 14 seems to be necessary when setting up lxml, a type of parsing tool that allows you to quickly parse XML and HTML, which we will want to build our web parsing, or scraping tools.

visual studio installer build tools 2017 c++ 14.0 etc etc etc… takes time, start it now.

Will know if our pip install lxml errors clear up after this restart (oh yeah and restart is necessary here).

Start early, the next part takes longer.

Getting this pip installer thing going takes a little bit, but luckily I’ve consolidated it here lol.

The install takes a little bit of time too.

setting up visual studio build tools 2017
As you’re installing, go check out your next hurdle. Beautiful soup!

Here’s what you need to check out to knock out the visual studio portion.

  1. https://wiki.python.org/moin/WindowsCompilers explains the basics.
  2. https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 shows you what to download.

Run the installer, don’t select anything other than default settings, and click install. It takes a little bit, and then you need to restart.

Once we get back from the restart, we will do the following pip installs.

pip install lxml (breaks with out c++14.0.)
pip install requests (ran this early, seems to install no hiccups.)

pip install beautifulsoup4 (ran this early, seems to install no hiccups.)

Will report back and iron out these posts more later.

If you have trouble with your pip install on python2 vs python3, or something along those lines, check out this next blog… sometimes you can get ahead, and there are a few things to ensure you have completed, like the above mumble jumble.

Update, started using pycharm and rather enjoying it. It’s a type of code editing “easy mode” application that you might want someone to walk you through a few times. Or google a youtube video. I figured it out without googling or looking anything up, which means you can fly past me with the right mentor.

Blogged here: https://medium.com/@itylergarrett.tag/setting-up-python-3-7-on-windows-10-a-non-developer-tutorial-e836639ca16

%d bloggers like this: