运行 pip install -r requirements.txt 时出错
Error when running pip install -r requirements.txt
构建和 运行 一个本地实例,我正在按照教程进行操作
https://haha.readthedocs.io/en/latest/install.html
但我使用 git 回购
https://github.com/readthedocs/readthedocs.org.git
代替
https://github.com/rtfd/readthedocs.org.git
对于“git 克隆”命令,因为教程中的 link 不存在。
我也在使用 venv
,而不是 virtualenv
,因为我无法使 virtualenv
工作。
然后我进入运行以下命令的步骤
pip install -r requirements.txt
一切似乎都安装正常,然后我得到了一个列表
INFO: pip is looking at multiple versions of <package>
接着是
ERROR: Could not find a version that satisfies the requirement pywin32==227; sys_platform == "win32" (from docker) (from versions: 302, 303)
ERROR: No matching distribution found for pywin32==227; sys_platform == "win32"
这是输出的最后一位
Collecting cssselect>0.7.9
Using cached cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting lxml>=2.1
Using cached lxml-4.8.0-cp310-cp310-win_amd64.whl (3.6 MB)
INFO: pip is looking at multiple versions of django-crispy-forms to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-formtools to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of markdown to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of regex to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of stripe to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-kombu to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pytz to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-gravatar2 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of orjson to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-dateutil to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyquery to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of selectolax to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-elasticsearch-dsl to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of elasticsearch-dsl to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of elasticsearch to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitpython to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of requests-oauthlib to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-allauth to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of celery to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of redis to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pygments to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyyaml to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of slumber to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of requests-toolbelt to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of requests to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of jsonfield to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-vanilla-views to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of drf-extensions to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of drf-flex-fields to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-filter to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of sphinx to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of djangorestframework to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-simple-history to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-autoslug to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-polymorphic to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-extensions to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of virtualenv to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pip to determine which version is compatible with other requirements. This could take a while.
Collecting pip==22.0.4
Using cached pip-22.0.4-py3-none-any.whl (2.1 MB)
ERROR: Could not find a version that satisfies the requirement pywin32==227; sys_platform == "win32" (from docker) (from versions: 302, 303)
ERROR: No matching distribution found for pywin32==227; sys_platform == "win32"
您正在使用 python 3.10,它在 PyPi 上没有可用的 pywin32==227
whl 文件。尝试使用较低的 python 版本进行安装,例如3.9
也许您可以尝试将 pip 降级到低于 20.2 的版本,并且它可能会更快地安装您想要的东西并可能解决问题
构建和 运行 一个本地实例,我正在按照教程进行操作
https://haha.readthedocs.io/en/latest/install.html
但我使用 git 回购
https://github.com/readthedocs/readthedocs.org.git
代替
https://github.com/rtfd/readthedocs.org.git
对于“git 克隆”命令,因为教程中的 link 不存在。
我也在使用 venv
,而不是 virtualenv
,因为我无法使 virtualenv
工作。
然后我进入运行以下命令的步骤
pip install -r requirements.txt
一切似乎都安装正常,然后我得到了一个列表
INFO: pip is looking at multiple versions of <package>
接着是
ERROR: Could not find a version that satisfies the requirement pywin32==227; sys_platform == "win32" (from docker) (from versions: 302, 303)
ERROR: No matching distribution found for pywin32==227; sys_platform == "win32"
这是输出的最后一位
Collecting cssselect>0.7.9
Using cached cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting lxml>=2.1
Using cached lxml-4.8.0-cp310-cp310-win_amd64.whl (3.6 MB)
INFO: pip is looking at multiple versions of django-crispy-forms to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-formtools to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of markdown to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of regex to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of stripe to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-kombu to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pytz to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-gravatar2 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of orjson to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-dateutil to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyquery to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of selectolax to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-elasticsearch-dsl to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of elasticsearch-dsl to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of elasticsearch to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitpython to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of requests-oauthlib to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-allauth to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of celery to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of redis to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pygments to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyyaml to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of slumber to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of requests-toolbelt to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of requests to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of jsonfield to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-vanilla-views to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of drf-extensions to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of drf-flex-fields to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-filter to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of sphinx to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of djangorestframework to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-simple-history to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-autoslug to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-polymorphic to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django-extensions to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of django to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of virtualenv to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pip to determine which version is compatible with other requirements. This could take a while.
Collecting pip==22.0.4
Using cached pip-22.0.4-py3-none-any.whl (2.1 MB)
ERROR: Could not find a version that satisfies the requirement pywin32==227; sys_platform == "win32" (from docker) (from versions: 302, 303)
ERROR: No matching distribution found for pywin32==227; sys_platform == "win32"
您正在使用 python 3.10,它在 PyPi 上没有可用的 pywin32==227
whl 文件。尝试使用较低的 python 版本进行安装,例如3.9
也许您可以尝试将 pip 降级到低于 20.2 的版本,并且它可能会更快地安装您想要的东西并可能解决问题