0

I've been looking around the internet for days now and cannot find a solution to my problem. I've learned all the basics to programming in Python 2.7 and I want to add Pip to my copy of 2.7. I found the link to download the unoffical 64-Bit installer (www.lfd.uci.edu/~gohlke/pythonlibs/), but when I downloaded it and ran it, it said I needed to have Python 2.7 (which I do) and it couldn't find it in the registry. I went to Pip's website and downloaded the official Windows installer and unpacked it using WinRAR.

I then tried opening Command Prompt and changed the directory to where the get-pip.py is located and running get-pip.py install but it says it failed to install.

I am completely lost and really need detailed and clear help. Please answer!

11
  • Did you install the 32-bit Python rather than the 64-bit Python? If so, download the 32-bit installer for pip from that pip, rather than the 64-bit one. Commented Aug 25, 2014 at 23:31
  • I downloaded the 64-Bit one. But that was off the unofficial site. Are you saying I should download the 32-Bit version even if I have a 64-Bit machine? And from where? The unofficial one or the real Pip website? Commented Aug 25, 2014 at 23:35
  • Note that in this case there are actually three distinctions between 32-bit and 64-bit to consider. The first is Windows for which you have the 64-bit version. The second is for Python which is located at python.org/download/releases/2.7.8. In general, you may consider only using the 64-bit version if you specifically need it, since some compiled modules may have compatibility issues. The third is for pip itself, and the version you would install would depend on the version of Python you installed not necessarily your version of Windows. HTH. Commented Aug 25, 2014 at 23:41
  • Also, note that pip does not install Python; you have to install Python from the link I provided above Commented Aug 25, 2014 at 23:43
  • Yes, I have Python on my system. Commented Aug 25, 2014 at 23:45

1 Answer 1

2

It doesn't matter what kind of machine you have. You can run 32-bit Windows on a 64-bit machine. And you can run 32-bit Python on 64-bit Windows.

If you have 32-bit Python, you need to install 32-bit pip. (Or you need to switch to 64-bit Python.)

From your description, you most likely have 32-bit Python on 64-bit Windows, and tried to use a 64-bit pip.


PS, if you want to install it manually instead of using Gohlke's installer, nobody can help you debug your problem based on "it says it failed to install". It produces a lot more output than that, and without that output, it's impossible to know which of the billion things that could possibly go wrong actually did.

PPS, just installing pip is sufficient to install any pure-Python packages. But if you want to install packages that include C extensions, you will need to set up a compiler (either MSVC, or MinGW/gcc), as explained in the pip documentation.

Sign up to request clarification or add additional context in comments.

2 Comments

How do I use easy_install to install Beautifulsoup4? I typed import pip into the Python command line and it didn't return any errors so I assume that means it installed. It says invalid syntax when I type easy_install beautifulsoup4
@Woops: You don't use easy_install. That's why you installed pip. You pip install beautifulsoup4. If that doesn't work, that's a completely different problem from not being able to install pip, so instead of trying to follow up here, accept an answer, or write and accept your own answer, or delete your question, and then create a new question.