Converting numpy to cupy uses GPU to execute errors

ModuleNotFoundError: No module named 'cupy._core. routines_sorting

Prompt for missing packages  

Using pyinstaller -D views.py --nocons can be packaged normally but an error occurs when running

Indicates that this packaging tool ignores many implicitly imported packages

The solution is simple

hiddenimports = ['fastrlock', 'fastrlock.rlock', 'cupy.core.flags'] First add these missing packages

Then just copy it over and overwrite it. It’s just that the packaging tool is faulty.

 

 

Guess you like

Origin blog.csdn.net/pzl_pzl/article/details/132150561