Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
导入python azure模块storage.table时导入错误_Python_Python 2.7_Azure_Importerror - Fatal编程技术网

导入python azure模块storage.table时导入错误

导入python azure模块storage.table时导入错误,python,python-2.7,azure,importerror,Python,Python 2.7,Azure,Importerror,1) 模块Azure存储已安装: sudo -H pip install azure-storage 已满足要求:azure存储在/usr/local/lib/python2.7/dist-packages中 2) 在我的python程序中: from azure.storage.table import TableService 给我一个错误: ImportError: No module named storage.table 3) 但是,如果打开交互式会话,我看不到错误: sand

1) 模块Azure存储已安装:

sudo -H pip install azure-storage
已满足要求:azure存储在/usr/local/lib/python2.7/dist-packages中

2) 在我的python程序中:

from azure.storage.table import TableService 
给我一个错误:

ImportError: No module named storage.table
3) 但是,如果打开交互式会话,我看不到错误:

sandeep@viepstesting:~$ python
Python 2.7.12+ (default, Sep 17 2016, 12:08:02)
[GCC 6.2.0 20160914] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from azure.storage.table import TableService
我在这个论坛上浏览了几篇关于这个话题的帖子,似乎没有任何效果。例如,尝试将PYTHONPATH设置为
/usr/local/lib/python2.7/dist-packages和/usr/local/lib/python2.7/dist-packages/

我将关闭此问题,因为我现在认为问题在于我在同一目录中有一个名为azure.py的文件


它不喜欢azure文件名

这正是发生在我身上的事情。可能是