from pip import main ImportError: cannot import name main

Bug #1789210 reported by Battant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-pip (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

Here is the configuration

lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

apt-cache policy python-pip
python-pip:
  Installed: 9.0.1-2.3~ubuntu1
  Candidate: 9.0.1-2.3~ubuntu1
  Version table:
 *** 9.0.1-2.3~ubuntu1 500
        500 http://ch.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://ch.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     9.0.1-2 500
        500 http://ch.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://ch.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

kernel version

uname -r
4.15.0-33-generic

Step to reproduce

1. open a terminal and type

pip
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

Question :

How fix this bug

Should I upgrade ubuntu to last beta version

Thanks for your support

Best regards

Battant

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python-pip 9.0.1-2.3~ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-33.36-generic 4.15.18
Uname: Linux 4.15.0-33-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Aug 27 15:12:20 2018
InstallationDate: Installed on 2018-08-01 (25 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: python-pip
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Battant (mparchet) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.