Python error - “ImportError: cannot import name 'dist'”

前端 未结 5 607
遥遥无期
遥遥无期 2021-01-03 20:19

I\'m on Ubuntu 16.04, and I get:

Traceback (most recent call last):
  File \"/home/omermazig/.virtualenvs/fixi/bin/pip\", line 7, in 
    from          


        
5条回答
  •  -上瘾入骨i
    2021-01-03 20:49

    Since I run into this issue everytime I update my ubuntu version every six months, then stumble on the exact same SO result, here is my solution.

    If the other solutions listed here don't work (installing python3-distutils), it might be because of different python versions between the system and the virtualenv.

    The easy solution is to destroy your virtualenv, then recreate it from scratch.

提交回复
热议问题