在云平台上想装mne包时候,指令pip install -U mne。
报错:ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/91/d2/30ecd905746d1fee4004daae3f0051bf4b305bee1fe578bd7d1ea712d571/Pillow-7.2.0-cp38-cp38-win_amd64.whl (Caused by ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001E6D75D4970>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)'))
解决方案:换个镜像就可以了
pip install xxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com,xxx为要安装的软件,如:
安装pillow软件:pip install pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com