问题描述:
在windows终端想给电脑安装docx包,用pip install docx命令安装时,报如下错误:
解决方法:
1、pip版本不对,我用的python是Anacnda自带的3.6.5版本的,pip有pip.exe和pip3.exe两种
2、Tunnel connection failed: 407 Proxy Authentication Required。由这句报错可知,结合是公司内网环境,可能是代理问题,配置代理如下:
set http_proxy=http://user:password@代理IP:port
set https_proxy=https://user:password@代理IP:port
3、最后用如下命令安装成功:
pip3 install docx