Azure Python SDKのインストールとエラー
インストールプロセスについては、以下を参照してください.https://azure-sdk-for-python.readthedocs.io/en/latest/installation.html
Pythonバージョン:2.7.6
pipインストール:
Githubソースのインストール:
【坑爸的错误】1.msrestエラー:
並べ替え手順と考え方:このエラー表面azureはmsrestを呼び出すと、msrestモジュールにエラーが発生し、msrestモジュールに正しく加算できない.msrestとmsrestazureがインストールされていることを確認した上で、import msrestが単独でエラーを発見したのは以下の通りです.
発生原因:requestsバージョンが低すぎます.解決方法:
発生原因:pyopensslバージョンの低すぎる解決方法:
Pythonバージョン:2.7.6
pipインストール:
pip install --upgrade pip
pip install azure-batch
pip install azure-mgmt-scheduler
pip install --pre azure-mgmt-compute
pip install --pre azure
pip install msrest
pip install msrestazure
Githubソースのインストール:
git clone git://github.com/Azure/azure-sdk-for-python.git
cd azure-sdk-for-python
python setup.py install
【坑爸的错误】1.msrestエラー:
Traceback (most recent call last):
File "" , line 1, in <module>
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
並べ替え手順と考え方:このエラー表面azureはmsrestを呼び出すと、msrestモジュールにエラーが発生し、msrestモジュールに正しく加算できない.msrestとmsrestazureがインストールされていることを確認した上で、import msrestが単独でエラーを発見したのは以下の通りです.
ImportError: No module named packages.urllib3
発生原因:requestsバージョンが低すぎます.解決方法:
pip install --upgrade requests
2.sslエラーAttributeError: 'X509' object has no attribute '_x509'
発生原因:pyopensslバージョンの低すぎる解決方法:
pip install -U pyOpenSSL