pyinstaller打包exe出现错误
ImportError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
降低版本无用
在命令行或者.sh文件里,可以在运行.py文件前直接指定:
CUDA_VISIBLE_DEVICES=x python xxx.py

pyinstaller打包exe出现错误
ImportError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
降低版本无用
在命令行或者.sh文件里,可以在运行.py文件前直接指定:
CUDA_VISIBLE_DEVICES=x python xxx.py