2016-06-21 11 views
0

私はPython 2.7.9をazure-2.0.0rc4とmsrest-0.4.0で使用しています。私のコードはmsrest.authenticationからインポートできませんでした。私はazureとmsrestパッケージから2つのファイルをチェックし、問題は見つけられませんでした。ImportError:msrest.authenticationのインポートに失敗しました

アドバイスと方向性があります。

ジョン

Traceback (most recent call last): 
    File "getCredential.py", line 1, in <module> 
    from azure.common.credentials import ServicePrincipalCredentials 
    File "/usr/local/lib/python2.7/site-packages/azure/common/credentials.py", line 25, in <module> 
    raise ImportError("You need to install 'msrest' to use this feature") 
ImportError: You need to install 'msrest' to use this feature 
+0

:このコマンドを実行する

は、その後、必要なパッケージをインストールしますか?ピップで? –

+0

はい、pipインストール--pre azure –

+0

--pre do?また、同じ方法でmsrestをインストールしましたか? –

答えて

0

私は問題を発見しました。私がpipインストールをsudoすると、他のグループの読み取り権限が設定されていません。一度それを修正したら、問題はなくなりました。

2

これはpip install --pre azureのバグです。あなたがそれらをインストールしたのか

pip install msrestazure 
関連する問題