certbot-auto 调试在 pip 上失败没有模块 Python
certbot-auto Debug fails at pip No module Python
我尝试调试“certbot-auto --debug
”,但它停留在以下位置:
Installing Python packages...
/opt/eff.org/certbot/venv/bin/python: No module named pip.__main__; 'pip' is a package and cannot be directly executed
Traceback (most recent call last):
File "/tmp/tmp.gK69dFvmow/pipstrap.py", line 177, in <module>
sys.exit(main())
File "/tmp/tmp.gK69dFvmow/pipstrap.py", line 149, in main
pip_version = StrictVersion(check_output([python, '-m', 'pip', '--version'])
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/opt/eff.org/certbot/venv/bin/python', '-m', 'pip', '--version']' returned non-zero exit status 1
我实际上是在尝试使用命令
更新 SSL 证书
sudo certbot-auto --nginx -d domain.com -d www.domain.com
但是它失败了,
Creating virtual environment...
Installing Python packages...
/opt/eff.org/certbot/venv/bin/python: No module named pip.__main__; 'pip' is a package and cannot be directly executed
Traceback (most recent call last):
File "/tmp/tmp.kOxEgPvxDL/pipstrap.py", line 177, in <module>
sys.exit(main())
File "/tmp/tmp.kOxEgPvxDL/pipstrap.py", line 149, in main
pip_version = StrictVersion(check_output([python, '-m', 'pip', '--version'])
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/opt/eff.org/certbot/venv/bin/python', '-m', 'pip', '--version']' returned non-zero exit status 1
我是 运行 Ubuntu 12.04 LTS 并安装了 python 3.7(默认)和 2.7(默认)
我已经安装了 python 3.7,认为它可以解决问题,但没有用。然后我将 python 3.7 作为默认值,但它也没有用。但是又好像没用。
这是我客户的网络服务器,他们不会升级 OS 版本。请对现有服务器提出建议
如何解决这个问题?
我找到了解决这个问题的办法。我可以使用此处的解决方案成功修复它:PIP error with certbot-auto。作为参考,我在这里添加解决方案。
我尝试调试“certbot-auto --debug
”,但它停留在以下位置:
Installing Python packages...
/opt/eff.org/certbot/venv/bin/python: No module named pip.__main__; 'pip' is a package and cannot be directly executed
Traceback (most recent call last):
File "/tmp/tmp.gK69dFvmow/pipstrap.py", line 177, in <module>
sys.exit(main())
File "/tmp/tmp.gK69dFvmow/pipstrap.py", line 149, in main
pip_version = StrictVersion(check_output([python, '-m', 'pip', '--version'])
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/opt/eff.org/certbot/venv/bin/python', '-m', 'pip', '--version']' returned non-zero exit status 1
我实际上是在尝试使用命令
更新 SSL 证书sudo certbot-auto --nginx -d domain.com -d www.domain.com
但是它失败了,
Creating virtual environment...
Installing Python packages...
/opt/eff.org/certbot/venv/bin/python: No module named pip.__main__; 'pip' is a package and cannot be directly executed
Traceback (most recent call last):
File "/tmp/tmp.kOxEgPvxDL/pipstrap.py", line 177, in <module>
sys.exit(main())
File "/tmp/tmp.kOxEgPvxDL/pipstrap.py", line 149, in main
pip_version = StrictVersion(check_output([python, '-m', 'pip', '--version'])
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/opt/eff.org/certbot/venv/bin/python', '-m', 'pip', '--version']' returned non-zero exit status 1
我是 运行 Ubuntu 12.04 LTS 并安装了 python 3.7(默认)和 2.7(默认)
我已经安装了 python 3.7,认为它可以解决问题,但没有用。然后我将 python 3.7 作为默认值,但它也没有用。但是又好像没用。
这是我客户的网络服务器,他们不会升级 OS 版本。请对现有服务器提出建议
如何解决这个问题?
我找到了解决这个问题的办法。我可以使用此处的解决方案成功修复它:PIP error with certbot-auto。作为参考,我在这里添加解决方案。