Python导入模块使用命令提示符

时间:2013-09-10 09:43:47

标签: python import module command-prompt

我在Windows 7操作系统上使用IDLE PyCharm在Python 2.7中编写代码。在IDLE内部运行我没有问题导入所有模块。当我使用Windows的命令提示符运行时,我收到以下错误消息:

C:\Users\samsung>C:\PythonScript\TOOL.py
Traceback (most recent call last):
  File "C:\PythonScript\TOOL.py", line 5, in <module
>
    import ogr
ImportError: No module named ogr

我可以毫无问题地使用IDLE导入此模块。

0 个答案:

没有答案