-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
官方文档提供的docker容器import paddle会报错Illegal instruction (core dumped) #69890
Comments
docker run --gpus all --name paddlex -v $PWD:/paddle --shm-size=8g --network=host -it ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/paddlex:paddlex3.0.0b2-paddlepaddle3.0.0b2-gpu-cuda12.3-cudnn9.0-trt8.6 /bin/bash λ 6d606eea1c14 ~/PaddleX python
λ 6d606eea1c14 ~/PaddleX python
|
我这个是在win10系统,docker desktop里面启动的容器。 |
你好,问题已经解决了,宿主机需要支持avx,创建的容器才可以运行paddle成功 |
@bossdong886 非常感谢您的回复,这是我主机的CPU,是不是还要有其他设置呢? |
嗯嗯好的,由于paddlepaddle官网上windows下暂不支持docker(即使是2.6下也需要通过源码编译来安装),这个docker可能是由PaddleX自己编的版本,不太确定是否支持windows,可以去PaddleX套件的仓库 https://github.com/PaddlePaddle/PaddleX 提个issue |
bug描述 Describe the Bug
部署命令如下:
docker pull registry.baidubce.com/paddlepaddle/paddle:3.0.0b1
docker run --name paddle_docker -itd -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:3.0.0b1 /bin/bash
pip install paddleocr -i https://pypi.tuna.tsinghua.edu.cn/simple
然后导入包:
import paddleocr
报错如下:
Python 3.10.13 (main, Aug 25 2023, 13:20:03) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: