pycharm python3.7 遇到的问题

1.在使用pip安装Python包时显示pip版本低的错误,You are using pip version 10.0.1, however version 18.0 is available.

解决方案:cmd跳转至E:\Python37\Scripts(Python解释器安装路径),输入命令“python pip3.exe”,然后输入pip更新命令“python -m pip install --upgrade pip”,然后就可以用pip install XXX安装Python包了

2.pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.(本质原因是网速过慢造成的)

解决方案:pip --default-timeout=1000 install -U sklearn

 

你可能感兴趣的:(Python,python,pip)