PyCharm error: 'No Module' when trying to import own module (python script)

前端 未结 14 1790
醉话见心
醉话见心 2020-12-07 07:57

I have written a module (a file my_mod.py file residing in the folder my_module). Currently, I am working in the file cool_script.py t

14条回答
  •  攒了一身酷
    2020-12-07 08:21

    Pycharm 2017.1.1

    1. Click on View->ToolBar & View->Tool Buttons
    2. On the left pane Project would be visible, right click on it and press Autoscroll to source and then run your code.

    This worked for me.

提交回复
热议问题