Replies: 2 comments
-
怒赞!👍🏻👍🏻 |
Beta Was this translation helpful? Give feedback.
0 replies
-
近期安装 PaddleX3-beta 会出现此错误: Now download and update the repos: ['PaddleOCR', 'PaddleSeg', 'PaddleNLP', 'PaddleDetection', 'PaddleClas', 'PaddleTS'].
Traceback (most recent call last):
File "\\?\C:\DevTools\miniconda\envs\px3\Scripts\paddlex-script.py", line 33, in <module>
sys.exit(load_entry_point('paddlex', 'console_scripts', 'paddlex')())
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\paddlex_cli.py", line 109, in main
install(args)
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\paddlex_cli.py", line 85, in install
setup(
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\repo_manager\core.py", line 183, in setup
getter.get(force=True, platform=platform)
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\repo_manager\repo.py", line 386, in get
self.remove()
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\repo_manager\repo.py", line 394, in remove
repo.remove()
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\repo_manager\repo.py", line 152, in remove
remove_repo_using_rm(self.name)
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\repo_manager\utils.py", line 104, in remove_repo_using_rm
return _check_call(['rm', '-rf', name])
File "c:\users\easygrid\desktop\temp\paddlex\paddlex\repo_manager\utils.py", line 25, in _check_call
return subprocess.check_call(*args, **kwargs)
File "C:\DevTools\miniconda\envs\px3\lib\subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\DevTools\miniconda\envs\px3\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\DevTools\miniconda\envs\px3\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\DevTools\miniconda\envs\px3\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。 原因不明,不知是OS问题,还是PaddleX3问题。 大家如遇到,可参照如下方法解决: 打开此文件: 将 修改后 if len(repos_to_get) > 0:
logging.info(
f"Now download and update the repos: {list(repo.name for repo in repos_to_get)}."
)
getter.get(force=False, platform=platform) # Line 183
logging.info("All repos are existing.") 再次执行 paddlex --install 即可成功安装。
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
百度飞浆AI一站式工具最新版PaddleX3的详细安装教程,根据以下步骤,可以帮助大家避坑,且一次性安装成功,助力大家将复杂的AI环境搭建标准化、流程化、简单化。原来AI开发可以如此简单。话不多说,直接上干货。
环境准备
本教程的PaddleX3环境搭建,基于此软硬件环境,请大家参考,如若您的环境与此不同,请尽量调整一致。
注:请务必确认自己的Nvidia GPU是否支持CUDA11.8
如何确认GPU是否支持CUDA11.8
注:只要这里显示的CUDA版本号 ≥ 11.8 即可。
安装步骤
严格按照下面的顺序流程,安装相关依赖与软件包,即可顺利完成PaddleX3的环境搭建。So Easy!
1、安装Microsoft C++编译器
注:此处下载的是在线安装包,所以安装过程较长,请耐心等待...
2、安装CUDA 11.8
3、安装CUDNN
4、安装miniConda
(1)生成配置文件
.condarc
(其位置在用户根目录下)(2)将如下内容,复制到用户目录下的
.condarc
文件中(3)清除索引缓存,保证用的是镜像站提供的索引
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
5、基于miniConda创建Python环境
6、安装PaddlePaddle
使用以下命令可以验证 PaddlePaddle 是否安装成功。
python -c "import paddle; paddle.utils.run_check()"
查看 PaddlePaddle 版本的命令如下:
python -c "import paddle; print(paddle.__version__)"
如果安装成功,将输出如下内容:
7、安装PaddleX
7-1、从 Github clone 源码
7-2、安装配置及依赖
使用PaddleX的模型进行AI推理
输出结果如下:
至此,PaddleX完全安装完毕!
Enjoy It!
Beta Was this translation helpful? Give feedback.
All reactions