zoukankan      html  css  js  c++  java
  • python 安装虚拟环境virtualenv

    1.sudo apt install virtualenv

     安装失败

    2.sudo apt-get update

     更新失败 提示:

    E: 仓库 “http://mirrors.aliyun.com/ubuntu artful Release” 不再含有 Release 文件。
    N: 无法安全地用该源进行更新,所以默认禁用该源。
    N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
    E: 仓库 “http://mirrors.aliyun.com/ubuntu artful-updates Release” 不再含有 Release 文件。
    N: 无法安全地用该源进行更新,所以默认禁用该源。
    N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
    E: 仓库 “http://mirrors.aliyun.com/ubuntu artful-backports Release” 不再含有 Release 文件。
    N: 无法安全地用该源进行更新,所以默认禁用该源。
    N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
    E: 仓库 “http://mirrors.aliyun.com/ubuntu artful-security Release” 不再含有 Release 文件。
    N: 无法安全地用该源进行更新,所以默认禁用该源。
    N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

    3.解决sudo apt-get update的问题

    参考https://blog.csdn.net/github_35160620/article/details/52115542

    文件留备份

    sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

    重新编写文件  /etc/apt/sources.list 文件 里面存放的是 Linux系统需要的软件源的网站。

    sudo gedit /etc/apt/sources.list
    将下面代码写到文件中
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    ##测试版源
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
    # 源码
    deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    ##测试版源
    deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
    4.再sudo apt-get update
    5.再sudo apt install virtualenv
    大致应该差不多就安装成功了
    -------未完待续----------
  • 相关阅读:
    Android应用开发学习笔记之事件处理
    [置顶] 炎炎夏日,给你一次极爽的开发体验!——统一开发环境功能升级优化,正式上线V2.0!
    POJ 3468 A Simple Problem with Integers (伸展树区间更新求和操作 , 模板)
    京东商城发现了一枚Bug
    iOS_40_核心动画
    SVN——库合并
    ORACLE 8i 遇到报错:ORA-01631: max # extents (505) reached in table
    HDU 5366:The mook jong 递推
    Linux平台下裸设备的绑定:
    CSP:使用CryptoAPI解码X509证书内容
  • 原文地址:https://www.cnblogs.com/cxl-blog/p/10928286.html
Copyright © 2011-2022 走看看