Oneflow-Inc / oneflow

OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient.
http://www.oneflow.org
Apache License 2.0
5.78k stars 658 forks source link

how to install specified version of oneflow by "pip install oneflow=xxx" #10538

Closed Remember2015 closed 1 week ago

Remember2015 commented 1 week ago

Description

The latest oneflow requires numpy >= 2.0 which is not compatible with some package like onnxruntime and many others, after I tried to install specified version of oneflow by pip install ..., it failed with message:

Could not find a version that satisfies the requirement oneflow==1.0.0 (from versions: 0.6.0, 0.7.0)

and version 0.7.0 is toooo old....

so is there any other ways to install 1.0.x versions that require numpy == 1.xx

0x404 commented 1 week ago

Fixed in #10537 , as a workaround, you can reinstall numpy to version 1.x like:

pip3 install --force-reinstall numpy==1.26.4
Remember2015 commented 1 week ago

Fixed in #10537 , as a workaround, you can reinstall numpy to version 1.x like:

pip3 install --force-reinstall numpy==1.26.4

Thanks, it works