Paddle icon indicating copy to clipboard operation
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

Open yucaifuyoyo opened this issue 3 years ago • 3 comments

问题描述 Issue Description

KMQ_Q5A4TTZ51FEP`UMEVGY ZANQU5X S3YRB{%0T@SYEV

版本&环境信息 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 return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 44, in _iter_built for version, func in infos: File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 279, in iter_index_candidate_infos result = self._finder.find_best_candidate( File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\package_finder.py", line 889, in find_best_candidate candidates = self.find_all_candidates(project_name) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\package_finder.py", line 830, in find_all_candidates page_candidates = list(page_candidates_it) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates yield from self._candidates_from_page(self.link) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\package_finder.py", line 794, in process_project_url page_links = list(parse_links(index_response)) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\collector.py", line 313, in wrapper_wrapper return wrapper(CacheablePageContent(page)) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\collector.py", line 308, in wrapper return list(fn(cacheable_page.page)) File "C:\02-software_python\01-python3.8\lib\site-packages\pip_internal\index\collector.py", line 327, in parse_links data = json.loads(page.content) File "C:\02-software_python\01-python3.8\lib\json_init.py", line 357, in loads return _default_decoder.decode(s) File "C:\02-software_python\01-python3.8\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\02-software_python\01-python3.8\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

yucaifuyoyo avatar Jul 28 '22 10:07 yucaifuyoyo

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

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 APIFAQGithub Issue and AI community to get the answer.Have a nice day!

paddle-bot[bot] avatar Jul 28 '22 10:07 paddle-bot[bot]

@yucaifuyoyo 我遇到这个问题后局部解决了。

OS:WSL 下的 Ubuntu 20.04 python:python 3.9 包管理:Anaconda

在非 root 用户下,base 环境里的安装时不会报错的;在自定义环境,比如 ocr 中安装,会持续报该错误。 在 root 用户下,无论 base 还是自定义的环境,都不会报错。

thsno02 avatar Jul 29 '22 01:07 thsno02

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

bertrandpa avatar Jul 29 '22 09:07 bertrandpa

该问题已经通过更新 https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html 页面得到了修复。 发现的pip的bug也已经反馈给了pip社区。

jzhang533 avatar Aug 31 '22 12:08 jzhang533

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。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot[bot] avatar Sep 05 '23 06:09 paddle-bot[bot]