在Windows 10上安装了Python27,但我无法安装Google的Cloud SDK。
安装失败,并显示以下信息:
ImportError: cannot import name _remove_dead_weakref
Failed to install.
在失败的途中,它提示:
Please verify that the following is the path to a working Python 2.7 executable:
C:\Users\c\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 executable.
可以正常运行的Python 2.7确实存在。设置CLOUDSDK_PYTHON不能解决其问题
答案 0 :(得分:1)
我删除了环境变量PYTHONHOME
,并成功安装了Google Cloud SDK。