1. 下載源碼Python-3.6.5.tar.xz, https://www.python.org/ftp/python/3.6.5/python
2. 運行./configure --enable-optimizations阿里雲
3. 修改Makefile中的prefix和Python-3.6.5/Modules/Setup.dist (處理openssl),make; make installurl
4. python3.6 -m venv my_envcode
5. ip
Certbot has problem setting up the virtual environment. HTTPConnectionPool(host=’mirrors.aliyun.com’, port=80): Read timed outssl
這實際上是pip鏈接超時問題。能夠改爲阿里雲或者豆瓣的鏡像。get
例如改爲阿里的源源碼
vi ~/.pip/pip.conf
[global]
index-url=https://pypi.douban.com/simpletrusted-host = mirrors.aliyun.com