python3.6安装

1. 下载源码Python-3.6.5.tar.xz, https://www.python.org/ftp/python/3.6.5/

2. 运行./configure --enable-optimizations

3. 修改Makefile中的prefix和Python-3.6.5/Modules/Setup.dist (处理openssl),make; make install

4. python3.6 -m venv my_env

5. 

Certbot has problem setting up the virtual environment. HTTPConnectionPool(host=’mirrors.aliyun.com’, port=80): Read timed out

这其实是pip连接超时问题。可以改成阿里云或者豆瓣的镜像。

例如改成阿里的源

vi ~/.pip/pip.conf

[global]
index-url=https://pypi.douban.com/simple
trusted-host = mirrors.aliyun.com
posted @ 2018-06-20 20:04  Key_Ky  阅读(788)  评论(0编辑  收藏  举报