值错误'/anaconda3/lib/libpython3.7.dylib'不存在? [英] Value error '/anaconda3/lib/libpython3.7.dylib' does not exist?

查看:162
本文介绍了值错误'/anaconda3/lib/libpython3.7.dylib'不存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在iterm2窗口中创建了一个虚拟环境.这是我先前询问的问题尚未解决,并且我的应用程序未运行是别名模式,所以我尝试再次执行整个过程,但plistlib显示错误,因此已由

so I've created a virtual environment in my 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 I tried this whole process again which means I did this all this before but my app was not working so i deleted my py2app and some venv's got deleted to I downloaded miniconda3 again and then it was working until it comes to running the app even in alias mode . but I continued and deleted the dist and build and when I executed python setup.py py2app but then i got this error

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

请帮助我解决这个问题谢谢!

please help me with this problem Thank You!

推荐答案

通常可以通过创建 symlink 来解决此问题,请参见

This problem can often be fixed by creating a symlink, see here for more.

ln -s /path/to/lib/libpython3.7m.dylib /path/to/lib/libpython3.7.dylib

对于上述命令,请将其替换为您自己的路径.

For the above command replace it with your own path.

这篇关于值错误'/anaconda3/lib/libpython3.7.dylib'不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆