How to fix “module 'platform' has no attribute 'linux_distribution'” when installing new packages with Python3.8?

前端 未结 5 1074
再見小時候
再見小時候 2020-12-10 11:28

I had Python versions of 2.7 and 3.5. I wanted the install a newer version of Python which is python 3.8. I am using Ubuntu 16.04 and I can not just uninstall Python 3.5 due

5条回答
  •  既然无缘
    2020-12-10 11:48

    In my case, removing python-pip-whl package helped:

    apt-get remove python-pip-whl
    

    It removed also pip and virtualenv, so I had to install them again:

    curl https://bootstrap.pypa.io/get-pip.py | python3
    pip install virtualenv
    

提交回复
热议问题