How to install pip on Windows?

Step-by-step tutorial on how to install pip on Windows
11 September 2017   4753

pip is a package management system used to install and manage software packages written in Python.

Python 2.7.9+ and 3.4+

Python 3.4 (released March 2014) and Python 2.7.9 (released December 2014) ship with Pip. This is the best feature of any Python release. It makes the community's wealth of libraries accessible to everyone. Newbies are no longer excluded from using community libraries by the prohibitive difficulty of setup. In shipping with a package manager, Python joins Ruby, Node.js, Haskell, Perl, Go--almost every other contemporary language with a majority open-source community. Thank you Python.

Python 2 ≤ 2.7.8 and Python 3 ≤ 3.3

Flying in the face of its 'batteries included' motto, Python ships without a package manager. To make matters worse, Pip was--until recently--ironically difficult to install.

Download get-pip.py, being careful to save it as a .py file rather than .txt. Then, run it from the command prompt:

python get-pip.py

You possibly need an administrator command prompt to do this

This installs the pip package, which (in Windows) contains ...\Scripts\pip.exe that path must be in PATH environment variable to use pip from the command line (see second part of 'Alternative Instructions' for adding it to your PATH,

Alternative instructions

The official documentation tells users to install Pip and each of its dependencies from source. That's tedious for the experienced, and prohibitively difficult for newbies.

For our sake, Christoph Gohlke prepares Windows installers (.msi) for popular Python packages. He builds installers for all Python versions, both 32 and 64 bit. You need to:

  1. Install setuptools
  2. Install pip

For me, this installed Pip at C:\Python27\Scripts\pip.exe. Find pip.exe on your computer, then add its folder (for example, C:\Python27\Scripts) to your path (Start / Edit environment variables). Now you should be able to run pip from the command line. Try installing a package:

pip install httpie

 

Python News Digest 3-9.08

Python is one of the most actively developing programming languages, and our regular news digest proves it
08 August 2019   416

Hello all! Hope you are doing fine! Here's the Python News digest. Enjoy!

Today, newbies will learn about Python Float(), how to use Qt5 library of built-in widgets to build your applications, 5 steps to learn Python in a proper way and many other things. And a preview of the freshest PyCharm will be interesting for skilled guys

Guides

  • Python 3.7.3 : Using the flask - part 008.

8th part of the tutorial that will show you how to understand the flash method and fix exceptions.

  • Python Float()

This tutorial explains Python float() method in detail

  • Using Qt5's library of built-in widgets to build your applications

Part of getting started with PyQt5 guide series, which talks about the Qt5 library of widgets to develop your own apps

  • Inheritance and Composition: A Python Guide

Great article forthe newbies that will give everything student need  to know about inheritance and composition in Python

  • 5 Steps to Learning Python the Right Way

Handy tips for those who learn Python, both for complete amateurs and those who are going to improve their level

Videos

  • "Python Oddities Explained" - Trey Hunner (PyCon AU 2019)

  • "Goodbye Print Statements, Hello Debugger!" - Nina Zakharenko (PyCon AU 2019)

  • Python standard library: dict.keys, dict.values, and dict.items

Updates

  • sphinxcontrib.datatemplates 0.5.0

An extension for Sphinx to render parts of reStructuredText pages from data files in formats like JSON, YAML, etc

  • PyCharm 2019.2.1 Preview

Preview of the newest version of popular Python IDE

Podcast

  • Build Your Own Knowledge Graph With Zincbase - Episode 223

Tom Grek from Versatile, AI enthusiast, talks about using Zincbase for creating personal knowledge graph.