Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

pip error after upgrade: ImportError: cannot import name ‘main’

Sometimes pip can be really sucks, after Upgrade the pip version, then you call it afterwards, it will fail somehow.

$ pip install --user --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ImportError: cannot import name 'main'
$ pip
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in 
    from pip import main
ImportError: cannot import name 'main'

The problem is easily can be resolved by doing this:

$ hash -d pip

The post pip error after upgrade: ImportError: cannot Import name ‘main’ appeared first on Python in the jungle.



This post first appeared on Pulpn - Cool News Directories, please read the originial post: here

Share the post

pip error after upgrade: ImportError: cannot import name ‘main’

×

Subscribe to Pulpn - Cool News Directories

Get updates delivered right to your inbox!

Thank you for your subscription

×