iT邦幫忙

0

Python 用 pip install 被拒絕連線

  • 分享至 

  • xImage

請問,Python 用 pip install 被拒絕連線,不知是本地的防火牆設定問題還是遠端伺服器拒絕?錯誤訊息如下:

C:\Windows\System32>pip install matlab
Defaulting to user installation because normal site-packages is not writeable
Collecting matlab
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, '遠端主機已強制關閉一個現存的連線。', None, 10054, None))': /packages/d1/ea/1ecc1d9dfde594111b395dff9637183225dfb55b54fff4a906ba0ad5095a/matlab-0.1.tar.gz
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, '遠端主機已強制關閉一個現存的連線。', None, 10054, None))': /packages/d1/ea/1ecc1d9dfde594111b395dff9637183225dfb55b54fff4a906ba0ad5095a/matlab-0.1.tar.gz
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, '遠端主機已強制關閉一個現存的連線。', None, 10054, None))': /packages/d1/ea/1ecc1d9dfde594111b395dff9637183225dfb55b54fff4a906ba0ad5095a/matlab-0.1.tar.gz
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, '遠端主機已強制關閉一個現存的連線。', None, 10054, None))': /packages/d1/ea/1ecc1d9dfde594111b395dff9637183225dfb55b54fff4a906ba0ad5095a/matlab-0.1.tar.gz
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, '遠端主機已強制關閉一個現存的連線。', None, 10054, None))': /packages/d1/ea/1ecc1d9dfde594111b395dff9637183225dfb55b54fff4a906ba0ad5095a/matlab-0.1.tar.gz
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/d1/ea/1ecc1d9dfde594111b395dff9637183225dfb55b54fff4a906ba0ad5095a/matlab-0.1.tar.gz (Caused by ProtocolError('Connection aborted.', ConnectionResetError(10054, '遠端主機已強制關閉一個現存的連線。', None, 10054, None)))

看更多先前的討論...收起先前的討論...
froce iT邦大師 1 級 ‧ 2024-09-03 10:18:12 檢舉
你公司網路設定有過proxy?
matlab 好像不是個很常用的套件,可以考慮到 pypi 上面直接下載下來做安裝
https://pypi.org/project/matlab/#files
下載完之後輸入 pip install matlab-0.1.tar.gz 安裝
青蛙 iT邦新手 4 級 ‧ 2024-09-03 21:45:27 檢舉
froce
我今天測試不過防火牆,網路直接對外還是不行安裝,但用手機網路就可以了。不知遠端是不是有鎖我的IP
青蛙 iT邦新手 4 級 ‧ 2024-09-03 21:46:00 檢舉
Penut Chen
謝謝教學,這也是一個方式。
mary5555 iT邦新手 5 級 ‧ 2024-09-04 08:46:36 檢舉
試試看 python -m pip install?
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答