安装后pypy3
如下:
apt-get -y install pypy3
尝试时发生以下错误设置pip
:
# pypy3 -m ensurepip
Traceback (most recent call last):
File "/usr/lib/pypy3/lib-python/3/runpy.py", line 196, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/pypy3/lib-python/3/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/pypy3/lib-python/3/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/usr/lib/pypy3/lib-python/3/ensurepip/__init__.py", line 221, in _main
version="pip {}".format(version()),
File "/usr/lib/pypy3/lib-python/3/ensurepip/__init__.py", line 71, in version
assert len(wheel_names) == 1, wheel_names
AssertionError: []
有没有办法来解决这个问题?
答案1
curl https://bootstrap.pypa.io/get-pip.py | pypy3
对我来说很管用。我发现使用 get-pip.py 文件很可靠