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

'fairscale'模块已经在pip列表,但是运行总是提示不存在 #692

Open
LJX-whu opened this issue Oct 8, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@LJX-whu
Copy link

LJX-whu commented Oct 8, 2024

Description of the bug | 错误描述

ModuleNotFoundError: No module named 'fairscale'
2024-10-08 09:05:26.543 | ERROR | magic_pdf.model.pdf_extract_kit::29 - Required dependency not installed, please install by
"pip install magic-pdf[full] --extra-index-url https://myhloli.github.io/wheels/"

How to reproduce the bug | 如何复现

1、已经通过pip install magic-pdf[full] --extra-index-url https://myhloli.github.io/wheels/指令下载了fairscale库,也利用pip list查到了fairscale,但是运行magic-pdf -p C:\Users\whu_l\Desktop\small_ocr.pdf -o C:\Users\whu_l\Desktop\就报错,没有fairscale模块;
2、尝试卸载fairscale再重装,还是有问题,怀疑是版本问题,通过pip install magic-pdf[full] --extra-index-url https://myhloli.github.io/wheels/下载的fairscale版本为:0.4.13
3、所以fairscale的版本有什么要求吗?

Operating system | 操作系统

Windows

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.8.x

Device mode | 设备模式

cuda

@LJX-whu LJX-whu added the bug Something isn't working label Oct 8, 2024
@tao-xiaoxin
Copy link

请查看一下你当前使用的环境,一般这种情况是使用了别的Python 环境,没有使用你命令行里面的Python 环境

@myhloli
Copy link
Collaborator

myhloli commented Oct 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants