L42*_*L42 8 openssl python-2.7
在尝试使用 gcloud 时,我看到了这个错误:
ERROR: gcloud failed to load: /tmp/_MEIKmE9I5/libssl.so.1.0.0: version `OPENSSL_1.0.2' not found (required by /usr/lib/python2.7/lib-dynload/_ssl.x86_64-linux-gnu.so)
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.calliope import cli
from googlecloudsdk.calliope import backend
from googlecloudsdk.calliope import parser_extensions
from googlecloudsdk.core.updater import update_manager
from googlecloudsdk.core.updater import installers
import ssl
import _ssl # if we can't import it, let the error propagate
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 executable:
/usr/bin/python2
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/
Run Code Online (Sandbox Code Playgroud)
下面是一些系统信息:
? uname -a
Linux stian-Lenovo-Y520-15IKBN 4.13.0-45-generic #50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
? /usr/bin/python2 -V
Python 2.7.12
? python -V
Python 2.7.12
? python -c 'import _ssl; print _ssl.OPENSSL_VERSION'
OpenSSL 1.0.2g 1 Mar 2016
? openssl version
OpenSSL 1.0.2g 1 Mar 2016
Run Code Online (Sandbox Code Playgroud)
我确实有一个文件libssl.so.1.0.0:
? ll /lib/x86_64-linux-gnu/libssl.so.1.0.0
-rw-r--r-- 1 root root 419K juni 20 14:32 /lib/x86_64-linux-gnu/libssl.so.1.0.0
Run Code Online (Sandbox Code Playgroud)
我从不同的计算器线程的建议之后安装这些软件包:libssl1.0.0 libssl1.0.0:i386 openssl libssl-dev libudev-dev。但我仍然看到同样的错误。我也尝试过完全删除 gcloud 并重新安装它但无济于事。
任何帮助解决这个问题的提示都将非常受欢迎。谢谢!
小智 6
我实际上在Google Cloud Shell上遇到过这个问题,但使用的是 OpenSSL 1.1。该错误类似于gcloud 无法加载 libssl.so.1.1并且它正在尝试从中加载/tmp/,这对我来说似乎很奇怪。我终于找到了一个有帮助的答案(https://superuser.com/a/1411019/299738):
rm ~/.docker/config.json
Run Code Online (Sandbox Code Playgroud)
我想当我为旧版本的 Python (2.7) 创建 virtualenv 时,我把事情搞砸了。
| 归档时间: |
|
| 查看次数: |
2958 次 |
| 最近记录: |