mac的M1电脑airtest报错ImportError: Error importing numpy: you should not try to import numpy from
执行的时候报错:
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设置为空就好了