2016-06-21 4 views
0

azure-2.0.0rc4 및 msrest-0.4.0이있는 Python 2.7.9가 있습니다. 내 코드가 msrest.authentication에서 가져 오지 못했습니다. azure 및 msrest 패키지에서 두 파일을 검사했는데 문제가 없습니다.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 install --pre azure –

+0

--pre는 무엇을합니까? 또한 같은 방법으로 msrest를 설치 했습니까? –

답변

0

나는이 문제를 발견했다. sudo pip install, 다른 그룹에 대한 읽기 권한이 설정되지 않았습니다. 일단 문제가 해결되면 문제는 해결되었습니다.

2

이것은 pip install --pre azure의 버그 인 것 같습니다.

pip install msrestazure 
관련 문제