• 设置国内下载源
  1. system settings -> software&updates ->download from
    选择aliyun
    Linux | 配置python环境
  2. 打开终端
    sudo apt update
    Linux | 配置python环境
  • 安装pip
    sudo apt install python3-pip
    可能出现的错误:
  1. You might want to run ‘apt-get -f install’ to correct these:
    The following packages have unmet dependencies:
    …………
    E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
    使用apt-get -f install命令

  2. unable to lock administration director
    Linux | 配置python环境
    原因:当前apt正在使用中,需要退出
    解决:进入lock所在文件夹,删除lock
    cd /var/lib/dpkg
    sudo rm lock

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
  • 2021-08-06
  • 2021-11-01
猜你喜欢
  • 2022-02-07
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案