Skip to content
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

Linux下的pip安装验证不成功 #8531

Closed
rsong0606 opened this issue Dec 3, 2022 · 4 comments
Closed

Linux下的pip安装验证不成功 #8531

rsong0606 opened this issue Dec 3, 2022 · 4 comments
Assignees

Comments

@rsong0606
Copy link

rsong0606 commented Dec 3, 2022

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
NVIDIA-SMI 510.47.03    Driver Version: 510.47.03    CUDA Version: 11.6  

WeChat2c1d9710e59d015cee0c8e7e989c214b

  • 版本号/Version:Paddle: PaddleOCR: 问题相关组件/Related components:
    paddleocr = "==2.6.1.0"
    python -m pip install paddlepaddle-gpu==2.4.0.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
  • 运行指令/Command Code:
    进入 python 解释器,输入import paddle
  • 完整报错/Complete Error Message:
  File "/home/*****.local/share/virtualenvs/*****/lib/python3.7/site-packages/paddle/fluid/core.py", line 249, in <module>
    from . import libpaddle
ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

https://blog.csdn.net/jaket5219999/article/details/127823120?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EAD_ESQUERY%7Eyljh-1-127823120-blog-121096993.pc_relevant_multi_platform_whitelistv4&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EAD_ESQUERY%7Eyljh-1-127823120-blog-121096993.pc_relevant_multi_platform_whitelistv4&utm_relevant_index=2
这个博客解决了问题 但是cuda又出了问题...

 UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
  "You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
 nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

@LDOUBLEV
Copy link
Collaborator

LDOUBLEV commented Dec 5, 2022

paddlepaddle的安装问题可以在这里https://github.com/paddlepaddle/paddle提issue

@jingsongliujing
Copy link
Collaborator

建议用2.3

@rsong0606
Copy link
Author

paddlepaddle-gpu==2.3.2.post116 这个嘛?

建议用2.3

@jingsongliujing
Copy link
Collaborator

对的,要和你的cuda版本对应

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants