virtualenv: OSError: [Errno 62] Too many levels of symbolic links:
virtualenv: OSError: [Errno 62] Too many levels of symbolic links:
OSError: [Errno 62] Too many levels of symbolic links: '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile'
在任何文件夹中 运行ning virtualenv env
时出现此错误。 python -m virtualenv env
除了 python3 returns 这个错误的每个版本。
Python3 returns dyld[1761]: Library not loaded: @executable_path/../.Python Referenced from: /opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9 Reason: tried: '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/bin/../.Python' (no such file), '/usr/local/lib/.Python' (no such file), '/usr/lib/.Python' (no such file)
我运行正在使用 macOS 12.0 Monterey(M1 Pro,如果重要的话)。
我已经尝试了上百万种解决方案,包括关闭 SIP 和尝试删除系统 files/folders(我无法做到)。我在这里不知所措。卸载并重新安装 virtualenv 没有任何作用。
ls -l /usr/bin | grep python
returns
lrwxr-xr-x 1 root wheel 75 18 Sep 09:26 python -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 18 Sep 09:26 python-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x 1 root wheel 75 18 Sep 09:26 python2 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 75 18 Sep 09:26 python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 18 Sep 09:26 python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
-rwxr-xr-x 1 root wheel 137696 18 Sep 09:26 python3
lrwxr-xr-x 1 root wheel 76 18 Sep 09:26 pythonw -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
lrwxr-xr-x 1 root wheel 76 18 Sep 09:26 pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
在尝试让 virtualenv 升级到 运行 python 2.7 的过程中,我可能搞砸了,现在我无法使用任何版本。
在我收到这个错误之前,我在尝试使用 2.7 作为选项 运行 virtualenv 时遇到了这个错误。
No virtualenv implementation for PythonInfo(spec=CPython2.7.16.final.0-64...
经过一些 f运行tic 谷歌搜索后,我偶然发现了 https://unix.stackexchange.com/questions/39333/how-can-i-remove-all-symbolic-links-with-a-special-target。我 运行 ls -la *
然后 unlink /path/to/Makefile
就像 /Library/Frameworks/Python...
.
OSError: [Errno 62] Too many levels of symbolic links: '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile'
在任何文件夹中 运行ning virtualenv env
时出现此错误。 python -m virtualenv env
除了 python3 returns 这个错误的每个版本。
Python3 returns dyld[1761]: Library not loaded: @executable_path/../.Python Referenced from: /opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/bin/python3.9 Reason: tried: '/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/bin/../.Python' (no such file), '/usr/local/lib/.Python' (no such file), '/usr/lib/.Python' (no such file)
我运行正在使用 macOS 12.0 Monterey(M1 Pro,如果重要的话)。
我已经尝试了上百万种解决方案,包括关闭 SIP 和尝试删除系统 files/folders(我无法做到)。我在这里不知所措。卸载并重新安装 virtualenv 没有任何作用。
ls -l /usr/bin | grep python
returns
lrwxr-xr-x 1 root wheel 75 18 Sep 09:26 python -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 18 Sep 09:26 python-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x 1 root wheel 75 18 Sep 09:26 python2 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 75 18 Sep 09:26 python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 18 Sep 09:26 python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
-rwxr-xr-x 1 root wheel 137696 18 Sep 09:26 python3
lrwxr-xr-x 1 root wheel 76 18 Sep 09:26 pythonw -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
lrwxr-xr-x 1 root wheel 76 18 Sep 09:26 pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
在尝试让 virtualenv 升级到 运行 python 2.7 的过程中,我可能搞砸了,现在我无法使用任何版本。
在我收到这个错误之前,我在尝试使用 2.7 作为选项 运行 virtualenv 时遇到了这个错误。
No virtualenv implementation for PythonInfo(spec=CPython2.7.16.final.0-64...
经过一些 f运行tic 谷歌搜索后,我偶然发现了 https://unix.stackexchange.com/questions/39333/how-can-i-remove-all-symbolic-links-with-a-special-target。我 运行 ls -la *
然后 unlink /path/to/Makefile
就像 /Library/Frameworks/Python...
.