File “/usr/bin/pip”, line 9, in from pip import main ImportError: cannot import name main

TL;DR The ‘ideal’ solution (Ubuntu/Debian way):$ python -m pip uninstall pip to uninstall the new pip 10 and retain your Ubuntu/Debian-provided patched pip 8. For a system-wide installation of modules use apt wherever possible (unless you are in a virtualenv), more on it below. In older Ubuntu/Debian versions, always add –user flag when using pip outside of virtualenvs (installs into ~/.local/, default in … Read more

TensorfloTensorflow installation error: not a supported wheel on this platformw installation error: not a supported wheel on this platform

I too got the same problem. I downloaded get-pip.py from https://bootstrap.pypa.io/get-pip.py and then ran python2.7 get-pip.py for installing pip2.7. And then ran the pip install command with python2.7 as follows. For Ubuntu/Linux: For Mac OS X: This should work just fine as it did for me 🙂 I followed these instructions from here.

How to install PyQt4 on Windows using pip?

Here are Windows wheel packages built by Chris Golke – Python Windows Binary packages – PyQt In the filenames cp27 means C-python version 2.7, cp35 means python 3.5, etc. Since Qt is a more complicated system with a compiled C++ codebase underlying the python interface it provides you, it can be more complex to build … Read more

How do I install pip on macOS or OS X?

pip’s documentation lists the supported mechanisms to install it: https://pip.pypa.io/en/stable/installation/#supported-methods It is generally recommended to avoid installing pip on the OS-provided python commands, and to install Python via the https://python.org installers or using something like Homebrew or pyenv. Python 3.4+ will have ensurepip, so if you’re unable to run python3 -m pip — run python3 -m ensurepip and it’ll install pip for you. If you’re using an end-of-life … Read more

How to install PyQt4 on Windows using pip?

Here are Windows wheel packages built by Chris Golke – Python Windows Binary packages – PyQt In the filenames cp27 means C-python version 2.7, cp35 means python 3.5, etc. Since Qt is a more complicated system with a compiled C++ codebase underlying the python interface it provides you, it can be more complex to build … Read more

Pip install on Mac OS gets error: command ‘/usr/bin/clang’ failed with exit code 1

Try to add these env var before If it does not work you can try with virtualenv: Because is written on github: Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions. With virtualenv, it’s … Read more

Install pip for python 3.5

Check: /usr/local/lib/python3.5/dist-packages You’ll either have Pip there or easy_install(part of Pythons setup tools), which can be used to install Pip: Or you can try: Another option is attempting to install from a repository, the package name depends on your distribution: Edit: Try this correction for easy install: I’m assuming that’s the directory it’s installed to. Also, … Read more

Dealing with multiple Python versions and PIP?

The current recommendation is to use python -m pip, where python is the version of Python you would like to use. This is the recommendation because it works across all versions of Python, and in all forms of virtualenv. For example: Previous answer, left for posterity: Since version 0.8, Pip supports pip-{version}. You can use it the same as easy_install-{version}: EDIT: pip … Read more