Public bug reported:

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)

** Affects: python-pip (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789210

Title:
      from pip import main ImportError: cannot import name main

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1789210/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to