hi mọi người
em có cài package từ pypi.python.org dùng lệnh pip nhưng nhận lỗi:
"ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/58/0b/8a4ab2c02982df4ed41e29f28f189459a7eba37899438e6bea7f39db793b/Django-5.1.4-py3-none-any.whl.metadata (Caused by NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f2756538950>: Failed to establish a new connection: [Errno -2] Name or service not known’))
em thử mọi cách không fix được ạ
Lỗi kết nối tới pypi.python.org trên wsl của window
- Step 1: Open CMD as Administrator before create any venv
- Step 2: Run pip config set global.trusted-host "pypi.org files.pythonhosted.org pypi.python.org"
- Step 3: Run pip install django
If not success, gave up Windows immediatly if you want to be an “IT man” - I dropped Windows in 2010 and using Linux family OS and never looked back - ah, sometimes I use Windows 93.
You wrote in this THREAD
là bạn ham mê python, coding và cs…flask Python…
but you don’t have even basic knowledge of the operating system and the Internet (or the WEB) and you don’t even know how to react to a problem in such a situation. Of course, nobody knows everything. So why does Google make most of its revenue from its search engine and, most importantly, what is this web search engine good for? Have you tried this “python -m pip install new_package”?
i tried that method you mentioned, everythingg not work
Everything is working now, even though I didn’t do anything. It’s really strange, some mysterious bug perhaps
Probably you mistyped on the 1st attempt.