after pip successful installed: ModuleNotFoundError

后端 未结 5 1792
孤街浪徒
孤街浪徒 2021-01-07 23:36

I am trying to install the SimPy module so that I can use it in IDLE. However, everytime I try to import in IDLE, I got an error. I already tried reinstalling Python and Pip

5条回答
  •  孤独总比滥情好
    2021-01-08 00:39

    What worked for me is that adding the module location to the sys.path

    import sys
    sys.path.insert(0, r"/path/to/your/module")
    

提交回复
热议问题