值错误 '/anaconda3/lib/libpython3.7.dylib' 不存在?
Value error '/anaconda3/lib/libpython3.7.dylib' does not exist?
所以我在我的 iterm2 window 中创建了一个虚拟环境。 this is the ques I asked earlier which has not been solved yet and my app is not running is alias modeso i tried to do the whole process again but it was showing error with plistlib so that was fixed by this answer 我再次尝试了整个过程,这意味着我以前做过这一切,但我的应用程序无法正常工作,所以我删除了我的 py2app,一些 venv 被删除了,我再次下载了 miniconda3,然后它一直在工作,直到 运行 即使在别名模式下的应用程序。但我继续并删除了 dist 和 build 以及当我执行时
python setup.py py2app
但后来我得到了这个错误
Traceback (most recent call last):
File "setup.py", line 18, in <module>
setup_requires=['py2app'],
File "/Users/divyabansal/divya/lib/python3.7/site-packages/setuptools/__init__.py", line
145, in setup
return distutils.core.setup(**attrs)
File "/Users/divyabansal/miniconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/divyabansal/miniconda3/lib/python3.7/distutils/dist.py", line 966, in
run_commands
self.run_command(cmd)
File "/Users/divyabansal/miniconda3/lib/python3.7/distutils/dist.py", line 985, in
run_command
cmd_obj.run()
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 756,
in run
self._run()
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 966,
in _run
self.run_normal()
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 1074,
in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 1384,
in create_binaries
mm.mm.run_file(runtime)
File "/Users/divyabansal/divya/lib/python3.7/site-packages/macholib/MachOGraph.py", line 89,
in run_file
raise ValueError("%r does not exist" % (pathname,))
ValueError: '/Users/divyabansal/miniconda3/lib/libpython3.7.dylib'
does not exist
请帮我解决这个问题
谢谢!
通常可以通过创建 symlink
来解决此问题,请参阅 here 了解更多信息。
ln -s /path/to/lib/libpython3.7m.dylib /path/to/lib/libpython3.7.dylib
将上面的命令替换成你自己的路径。
所以我在我的 iterm2 window 中创建了一个虚拟环境。 this is the ques I asked earlier which has not been solved yet and my app is not running is alias modeso i tried to do the whole process again but it was showing error with plistlib so that was fixed by this answer 我再次尝试了整个过程,这意味着我以前做过这一切,但我的应用程序无法正常工作,所以我删除了我的 py2app,一些 venv 被删除了,我再次下载了 miniconda3,然后它一直在工作,直到 运行 即使在别名模式下的应用程序。但我继续并删除了 dist 和 build 以及当我执行时
python setup.py py2app
但后来我得到了这个错误
Traceback (most recent call last):
File "setup.py", line 18, in <module>
setup_requires=['py2app'],
File "/Users/divyabansal/divya/lib/python3.7/site-packages/setuptools/__init__.py", line
145, in setup
return distutils.core.setup(**attrs)
File "/Users/divyabansal/miniconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/divyabansal/miniconda3/lib/python3.7/distutils/dist.py", line 966, in
run_commands
self.run_command(cmd)
File "/Users/divyabansal/miniconda3/lib/python3.7/distutils/dist.py", line 985, in
run_command
cmd_obj.run()
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 756,
in run
self._run()
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 966,
in _run
self.run_normal()
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 1074,
in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File "/Users/divyabansal/divya/lib/python3.7/site-packages/py2app/build_app.py", line 1384,
in create_binaries
mm.mm.run_file(runtime)
File "/Users/divyabansal/divya/lib/python3.7/site-packages/macholib/MachOGraph.py", line 89,
in run_file
raise ValueError("%r does not exist" % (pathname,))
ValueError: '/Users/divyabansal/miniconda3/lib/libpython3.7.dylib'
does not exist
请帮我解决这个问题 谢谢!
通常可以通过创建 symlink
来解决此问题,请参阅 here 了解更多信息。
ln -s /path/to/lib/libpython3.7m.dylib /path/to/lib/libpython3.7.dylib
将上面的命令替换成你自己的路径。