我有一个模块,我无法从文件顶部的import语句导入,但相同的导入在同一个解释器中工作正常。
对此有何想法?
➜ ~ python /home/barrett/Git/bnr_robot_software/src/bnr_robot_cloud /bnr_robot_cloud_common/src/bnr_robot_cloud_common/my_unique_script_name.py
Traceback (most recent call last):
File "/home/barrett/Git/bnr_robot_software/src/bnr_robot_cloud/bnr_robot_cloud_common/src/bnr_robot_cloud_common/my_unique_script_name.py", line 1, in <module>
from azure.servicebus import ServiceBusService
ImportError: No module named servicebus
➜ ~ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from azure.servicebus import ServiceBusService
>>>