雖然下面的 「Mac OS X的」 安裝步驟Installation and Quick Start錯誤安裝谷歌雲SDK
我用下面的命令: -
curl https://sdk.cloud.google.com | bash
和目錄提取/Users/xxxxx/google-cloud-sdk/
下
,但我得到了此錯誤: -
Traceback (most recent call last):
File "/Users/xxxxx/google-cloud-sdk/bin/bootstrapping/install.py", line 8, in <module>
import bootstrapping
File "/Users/xxxxx/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 9, in <module>
import setup
File "/Users/xxxxx/google-cloud-sdk/bin/bootstrapping/setup.py", line 44, in <module>
from googlecloudsdk.core.util import platforms
File "/Users/xxxxx/google-cloud-sdk/bin/bootstrapping/../../lib/googlecloudsdk/core/util/platforms.py", line 6, in <module>
import platform
ImportError: No module named platform
環境: -
- 的Mac OS X約塞米蒂10.10
- 的Python 2.7.6
- $ whereis蟒蛇
/usr/bin/python
有人能幫忙嗎?
[platform](https://docs.python.org/2/library/platform.html)是一個標準的Python模塊。如果它不在那裏,你的Python安裝就會被破壞。 –
也許您應該重新安裝您的Python,然後嘗試再次安裝Cloud SDK。 –
平臺模塊在那裏,>>> import platform >>> platform .__ file__ '/ System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.pyc'' – Ahmed