KEMBAR78
ImportError: cannot import name 'sysconfig' · Issue #5356 · pypa/pip · GitHub
Skip to content

ImportError: cannot import name 'sysconfig' #5356

@fengberlin

Description

@fengberlin
  • Pip version:
  • Python version: Python 3.6.5
  • Operating system: Ubuntu 18.04 LTS

Description:

This is my first time to install pip in my Ubuntu 18.04 LTS that I have just installed for serveral days. After using "curl" command to download the "get-pip.py" file and running the command "python3 get-pip.py", I got the error message. The error message is following.

What I've run:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python3 get-pip.py

The error message:

Traceback (most recent call last):
  File "get-pip.py", line 20649, in <module>
    main()
  File "get-pip.py", line 197, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    import pip._internal
  File "/tmp/tmpaa4p6j0e/pip.zip/pip/_internal/__init__.py", line 42, in <module>
  File "/tmp/tmpaa4p6j0e/pip.zip/pip/_internal/cmdoptions.py", line 16, in <module>
  File "/tmp/tmpaa4p6j0e/pip.zip/pip/_internal/index.py", line 25, in <module>
  File "/tmp/tmpaa4p6j0e/pip.zip/pip/_internal/download.py", line 35, in <module>
  File "/tmp/tmpaa4p6j0e/pip.zip/pip/_internal/locations.py", line 10, in <module>
ImportError: cannot import name 'sysconfig'

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationproject: <downstream>When the cause/effect is related to redistributorstype: supportUser Support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions