如何解决pip 安装:我正在尝试在我的 MacBook Air 中安装 pip,但它显示语法错误:语法无效
Traceback (most recent call last):
File "/usr/local/bin/pip",line 11,in <module>
load_entry_point('pip==21.0.1','console_scripts','pip')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 489,in load_entry_point
return get_distribution(dist).load_entry_point(group,name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 2843,in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 2434,in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py",line 2440,in resolve
module = __import__(self.module_name,fromlist=['__name__'],level=0)
File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/main.py",line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid Syntax
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。