使用pip安装ptflops报错
本人在终端使用pip install ptflops命令安装ptflops报错:
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/4d/b8/a4c57d04f44afa60bef9868c66799458147fdb11742158d986881d96677a/ptflops-0.7.1.2.tar.gz (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001EBCED898D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
将命令改为:
pip install ptflops -i https://mirrors.aliyun.com/pypi/simple/