Import module works in terminal but not in IDLE

前端 未结 6 1677
轮回少年
轮回少年 2020-12-03 21:54

I am trying to import pyodbc module on a windows computer. It works in the terminal, but not the IDLE. The error message in IDLE is:



        
6条回答
  •  隐瞒了意图╮
    2020-12-03 22:33

    When you put your python scripts that have import pandas in the same folder as the site packages like pandas for example and use the same version of python that is used on CMD, it should help run your scripts in IDLE.

提交回复
热议问题