【发布时间】:2017-02-09 14:39:05
【问题描述】:
1) 模块 Azure-storage 已安装:
sudo -H pip install azure-storage
已满足要求:/usr/local/lib/python2.7/dist-packages 中的 azure-storage
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/
【问题讨论】:
标签: python python-2.7 azure importerror