win10子系统Ubuntu18: ImportError: cannot import name 'sysconfig'

问题:

解决方法

  1. 添加系统源(在原有基础上添加一下内容)
    将以下内容追加到该文件中: /etc/apt/sources.list
deb http://cn.archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://cn.archive.ubuntu.com/ubuntu bionic-proposed main multiverse restricted universe 
  1. update更新源文件
    sudo apt-get update

  2. 重新安装pip
    sudo apt-get install python3-pip

posted @ 2021-11-05 11:41  yadongtv  阅读(161)  评论(0)    收藏  举报