ImportError: ERROR: recursion is detected during loading of “cv2“ binary extensions. Check OpenCV in

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

你可能感兴趣的:(python,linux)