search

Home  >  Q&A  >  body text

python - ubuntu16.04安装virtualenv,不能解析域名

第一张是sudo apt-get install virtualenv

第二张是pip install virtualenv

后面用了sudo apt-get install http://pypi.dpibanio.com/simple/virtualenv都不行,说找不到包

关于ubuntu16.04下virtualenv如何安装呢?
python-2.7.11+

PHP中文网PHP中文网2887 days ago488

reply all(4)I'll reply

  • 阿神

    阿神2017-04-17 17:48:55

    Installation method:

    sudo apt-get install virtualenv
    

    Also, are you sure your computer can connect to the Internet? sudo apt updateCan it run normally? If you can access the Internet normally, can you try changing the source?

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:48:55

    sudo pip install virtualenv
    I just installed it on my ubuntu 16.04 a few days ago

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:48:55

    You can try to use other sources to install:

    pip install virtualenv -i http://pypi.douban.com/simple

    In addition, you need to test the network accessibility

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:48:55

    Please try
    $ nslookup cn.archive.ubuntu.com
    See if the domain name can be resolved

    reply
    0
  • Cancelreply