我在我的项目中使用opencv。项目取得成功并执行良好。但是当我尝试将我的应用程序重新定位到另一个文件夹时,我看到了错误:
MacBook-Air-Voldemar:tmp voldemar$ ./Paranoid.app/Contents/MacOS/Paranoid
Traceback (most recent call last):
File "/private/tmp/Paranoid.app/Contents/Resources/__boot__.py", line 316, in <module>
_run()
File "/private/tmp/Paranoid.app/Contents/Resources/__boot__.py", line 311, in _run
exec(compile(source, path, 'exec'), globals(), globals())
File "/private/tmp/Paranoid.app/Contents/Resources/Paranoid.py", line 4, in <module>
import cv
File "cv.pyc", line 1, in <module>
ImportError: No module named cv2.cv
我在项目文件夹中执行应用程序时没有这样的错误。我该如何解决这个问题?