ubuntu bionic 出现 ImportError: cannot import name ‘sysconfig’

Posted on Posted in python

ubuntu bionic 出现 ImportError: cannot import name 'sysconfig'


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


sudo apt-get install python3-distutils

One thought on “ubuntu bionic 出现 ImportError: cannot import name ‘sysconfig’

  1. Google Chrome 69.0.3497.100 Google Chrome 69.0.3497.100 Windows 10 x64 Edition Windows 10 x64 Edition
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36


    I enjoyed your article on http://liuhonghe.me/python-spider-1.html . I especially liked how lucid the article was.

    I gather you have linked to http://selenium-python.readthedocs.io/getting-started.html from that page.

    Would you consider linking to us?

    Guru99 link – Selenium tutorial(https://www.guru99.com/first-selenium-test-script.html)

    I did be happy to share your page with our 30k Facebook/Twitter/Linkedin Followers.


Leave a Reply

Your email address will not be published. Required fields are marked *

three × 1 =