Open PyDeps opened 2 years ago
requirements.txt
has a compatibility issue now if I directly install by pip install -r requirements.txt
the below versions work in my ubuntu 20.04:
numpy~=1.21.6
torch~=1.13.1
opencv-python~=4.7.0.68
scipy~=1.7.3
matplotlib~=3.5.3
cython~=0.29.33
pyyaml~=6.0
torchvision~=0.14.1
onnxruntime~=1.13.1
imageio~=2.25.0
tqdm~=4.64.1
imageio-ffmpeg~=0.4.8
Hi, In 3DDFA_V2, inappropriate dependency versioning constraints can cause risks.
Below are the dependencies and version constraints that the project is using
The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict. The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.
After further analysis, in this project, The version constraint of dependency numpy can be changed to >=1.16.0rc1,<=1.18.5. The version constraint of dependency imageio can be changed to >=1.1-linux32,<=2.19.3. The version constraint of dependency tqdm can be changed to >=4.42.0,<=4.64.0. The version constraint of dependency argparse can be changed to >=1.2.1,<=1.4.0. The version constraint of dependency cython can be changed to >=0.13,<=0.24.1. The version constraint of dependency gradio can be changed to >=0.9.3,<=3.4b3.
The above modification suggestions can reduce the dependency conflicts as much as possible, and introduce the latest version as much as possible without calling Error in the projects.
The invocation of the current project includes all the following methods.
The calling methods from the numpy
The calling methods from the imageio
The calling methods from the tqdm
The calling methods from the argparse
The calling methods from the cython
The calling methods from the gradio
The calling methods from the all methods
@developer Could please help me check this issue? May I pull a request to fix it? Thank you very much.