正常下载安装ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
requests 2.25.0 requires idna<3,>=2.5, but you'll have idna 3.1 which is incompatible.
Successfully installed MarkupSafe-1.1.1 PyJWT-1.7.1 aiohttp-3.7.3 astral-1.10.1 async-timeout-3.0.1 attrs-19.3.0 bcrypt-3.1.7 certifi-2020.12.5 cffi-1.14.4 chardet-3.0.4 ciso8601-2.1.3 cryptography-3.2 h11-0.12.0 homeassistant-2021.1.5 httpcore-0.12.2 httpx-0.16.1 idna-3.1 jinja2-2.11.2 multidict-5.1.0 pycparser-2.20 python-slugify-4.0.1 pytz-2020.5 pyyaml-5.3.1 requests-2.25.0 rfc3986-1.4.0 ruamel.yaml-0.15.100 six-1.15.0 sniffio-1.2.0 text-unidecode-1.3 typing-extensions-3.7.4.3 urllib3-1.26.2 voluptuous-0.12.1 voluptuous-serialize-2.4.0 yarl-1.6.3
WARNING: You are using pip version 20.2.3; however, version 21.0 is available.
You should consider upgrading via the 'd:\python39\python.exe -m pip install --upgrade pip' command.
根据错误提示再次安装
WARNING: You are using pip version 20.2.3; however, version 21.0 is available.
You should consider upgrading via the 'd:\python39\python.exe -m pip install --upgrade pip' command.
提示更新pip
C:\Users\homeassistant>pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
Using cached https://pypi.tuna.tsinghua.edu.c ... .0-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\python39\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.
出现拒绝访问
C:\Users\homeassistant>pip install --user --upgrade pip
Traceback (most recent call last):
File "d:\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Python39\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'