i'm trying use azure python api. followed these installation instructions https://azure.microsoft.com/en-us/documentation/articles/python-how-to-install/ using
pip install azure
it had no issues. (i ran again below show message stating installed. )
i want upload storage described here: https://azure.microsoft.com/en-us/documentation/articles/storage-python-how-to-use-blob-storage/
$ pip install azure requirement satisfied (use --upgrade upgrade): azure in ./lib/python2.7/azure-1.0.1-py2.7.egg ... requirement satisfied (use --upgrade upgrade): azure-storage==0.20.1 in ./lib/python2.7/azure_storage-0.20.1-py2.7.egg (from azure) ... $ pip install azure-storage requirement satisfied (use --upgrade upgrade): azure-storage in ./lib/python2.7/azure_storage-0.20.1-py2.7.egg ... $ python2.7 >>> import azure /home/path/lib/python2.7/azure_nspkg-1.0.0-py2.7.egg/azure/__init__.py:1: userwarning: module azure imported ... /home/path/lib/python2.7/azure_nspkg-1.0.0-py2.7.egg/azure/__init__.pyc, /home/path/lib/python2.7/azure_storage-0.20.1-py2.7.egg being added sys.path __import__('pkg_resources').declare_namespace(__name__) ... >>> import azure # second time try it. time no msg. >>> azure.storage.blob import blobservice traceback (most recent call last): file "<stdin>", line 1, in <module> importerror: no module named storage.blob
if need azure-storage should able install package. if need storage , other aspects of azure, can install azure , grab including storage. no need both installs.
particularly if had older version of azure installed before there can issues how dependencies link up. give pip uninstall azure
, pip uninstall azure-storage
try , if you're feeling particularly thorough delete prefixed azure in python lib folder. install need per first paragraph.
Comments
Post a Comment