Paddle
Paddle copied to clipboard
安装官方文档安装报错 python -m pip install paddlepaddle-gpu==2.3.1.post111 -f https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html
问题描述 Issue Description

版本&环境信息 Version & Environment Information
C:\Users\cf.yu>python -m pip install paddlepaddle-gpu==2.3.1.post111 -f https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Looking in links: https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html
ERROR: Exception:
Traceback (most recent call last):
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
@yucaifuyoyo 我遇到这个问题后局部解决了。
OS:WSL 下的 Ubuntu 20.04 python:python 3.9 包管理:Anaconda
在非 root 用户下,base 环境里的安装时不会报错的;在自定义环境,比如 ocr 中安装,会持续报该错误。 在 root 用户下,无论 base 还是自定义的环境,都不会报错。
Hi @yucaifuyoyo
I ran into the same error and it seems to be related to pip update 22.2 and especially this commit regarding PEP 691 implementation : https://github.com/pypa/pip/commit/6f167b55a9293b423244318f1ae77fe576f2ee43#diff-6a334a312dbfe5998b0e0826594f38bc2cc4fc69e7d285580fd323b3a9d69e1cR143
To fix this while waiting for pip to change this you can downgrade pip with : python -m pip install --upgrade pip==22.1.2
该问题已经通过更新 https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html 页面得到了修复。 发现的pip的bug也已经反馈给了pip社区。
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。