windows10+vs2015+python35安装 pyuv

一、 git clone https://github.com/saghul/pyuv


二、安装过程当中会下载libuv的源码和gyp的源码,须要访问google的服务器。设置git代理。
香港代理
http://49.1.244.139:3128
https://183.111.169.209:3128


先ping一下以上ip地址,看是否任然有效。
而后,
git config --global http.proxy http://49.1.244.139:3128
git config --global https.proxy https://183.111.169.209:3128


三、安装
注意,pyuv可支持python3.5,可是编译libuv的脚本要求使用用python2.7,因而修改setup_libuv.py
line 66 -- env.pop('VS140COMNTOOLS', None)

line 66 ++ #env.pop('VS140COMNTOOLS', None) python

命令行: git

set PYTHON=python3.5 location
python35 setup.py build_ext --inplace

耐心等待编译完成 github

而后执行安装: 服务器

python35 setup.py install  python2.7

四、恢复git的代理设置 git config --global --unset http.proxy git config --global --unset https.proxy
相关文章
相关标签/搜索