mac的M1电脑airtest报错ImportError: Error importing numpy: you should not try to import numpy from
pip3 install opencv-contrib-python==4.9.0.80 (无效)1、尝试把python3.11改成3.9(无效)最后把自定义的python.exe设置为空就好了。
执行的时候报错:
airtest 报错ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
还有报错:ImportError: dlopen(/Users/linjing/Library/Python/3.9/lib/python/site-packages/cv2/cv2.abi3.so, 0x0002): tried: ‘/Users/linjing/Library/Python/3.9/lib/python/site-packages/cv2/cv2.abi3.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/linjing/Library/Python/3.9/lib/python/site-packages/cv2/cv2.abi3.so’ (no such file), ‘/Users/linjing/Library/Python/3.9/lib/python/site-packages/cv2/cv2.abi3.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’))
折腾了一早上
最后把自定义的python.exe设置为空就好了
更多推荐
所有评论(0)