FCOS调试过程中遇到的问题2

tech2023-05-22  130

1.pip install ninja yacs cython matplotlib tqdm出现了以下问题:

(FCOS) dell@dell:~$ pip install ninja yacs cython matplotlib tqdm Collecting ninja WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f355b9a6668>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败’,)’: /packages/f6/27/41b8a846496451ea9f103bf8e1d0d1b010d1180c30d84a87433ec5d7f88e/ninja-1.10.0.post1-py3-none-manylinux1_x86_64.whl WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f355b994128>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败’,)’: /packages/f6/27/41b8a846496451ea9f103bf8e1d0d1b010d1180c30d84a87433ec5d7f88e/ninja-1.10.0.post1-py3-none-manylinux1_x86_64.whl WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f355c30ba58>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败’,)’: /packages/f6/27/41b8a846496451ea9f103bf8e1d0d1b010d1180c30d84a87433ec5d7f88e/ninja-1.10.0.post1-py3-none-manylinux1_x86_64.whl WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f355c30bfd0>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败’,)’: /packages/f6/27/41b8a846496451ea9f103bf8e1d0d1b010d1180c30d84a87433ec5d7f88e/ninja-1.10.0.post1-py3-none-manylinux1_x86_64.whl WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f355ba03b38>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败’,)’: /packages/f6/27/41b8a846496451ea9f103bf8e1d0d1b010d1180c30d84a87433ec5d7f88e/ninja-1.10.0.post1-py3-none-manylinux1_x86_64.whlERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/f6/27/41b8a846496451ea9f103bf8e1d0d1b010d1180c30d84a87433ec5d7f88e/ninja-1.10.0.post1-py3-none-manylinux1_x86_64.whl (Caused by NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f355b9f5908>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败’,))

解决办法:pip install --user ninja yacs cython matplotlib tqdm(即在install后加上 --user)

最新回复(0)