mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-04 08:14:41 +00:00
numpy version #219
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cvonk on GitHub (Jul 31, 2022).
There appears to be an inconsistency with the
numpyversion required.With no numpy installed, running
pip install basicsrreturnsI then tried pre installing numpy 1.20.3 (
pip install numpy==1.20.3), but that fails withGFPGAN's
requirements.txtcontainsBut the numba install instructions reads
So .. I install numby 1.22.3 instead. (
pip install numpy==1.22.3)Now I can run
pip install basicsr,pip install facexlibI update GFPGAN's
requirements.txtaccordingly, and runpython setup.py developandpip install realesrganand download the models.All looking good. Until I run
python inference_gfpgan.py ...Seems like
diffjpeg.pyinsists on numpy API version 0x10, probably available in >= 1.23.Environment: Windows 11, installed Python 3.10.5 for all users. GFPGAN release v1.3.4
Please advise
@Timuryaka commented on GitHub (Aug 10, 2022):
Hello, did you manage to fix this problem? I'm 100% noob, that's my first installation so no way I can fix this myself :(
I can't
pip install -r requirements.txt,mistake - note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
@276562578 commented on GitHub (Aug 15, 2022):
same issue
@cvonk commented on GitHub (Aug 15, 2022):
I followed the instructions from the README.md, but didn't get it to work. Tried some workarounds, but still no success. I am not a python person, so maybe some body else can comment.
To me, the library conflicts appear related to the sheer number of libraries used. E.g. for some libraries a maximum version number is specified, but that conflict with other libraries. Also
diffjpeg.pyreplies on an oldnumpyAPI version.@clort81 commented on GitHub (Oct 17, 2022):
Python kids love NEW things. Everything has to be NEW and API incompatible every few months.
NEW = Nothing Ever Works.
This has led to all kinds of attempts to fix the situation but the tl;dr of it all is that to get a complex python project running, you need an image of the exact OS the authors use, all library versions must match. This is the cause of all the containerization we see.
It's a pox.
@georgezouq commented on GitHub (Aug 24, 2023):
same issue