执行的时候报错:
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’))文章来源:https://www.toymoban.com/news/detail-847784.html
折腾了一早上
最后把自定义的python.exe设置为空就好了文章来源地址https://www.toymoban.com/news/detail-847784.html
到了这里,关于mac的M1电脑airtest报错ImportError: Error importing numpy: you should not try to import numpy from的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!