ImportError: No module named simpy

3,822 views
Skip to first unread message

afar...@gmail.com

unread,
Mar 2, 2016, 10:37:32 AM3/2/16
to python-simpy

I am getting the below error when attempting import simpy

ImportError: No module named simpy


I've installed simpy and updated it via cmd and it appears to be in a folder structure that is defined in my PATH under environment variables.


Here is my PATH: ;C:\Users\afarmand\AppData\Local\Continuum\Anaconda2 ;C:\Users\afarmand\AppData\Local\Continuum\Anaconda2\Scripts ;C:\Users\afarmand\AppData\Local\Continuum\Anaconda2\Library\bin ;C:\Users\afarmand\AppData\Local\Continuum\Anaconda ;C:\Users\afarmand\AppData\Local\Continuum\Anaconda\Scripts ;C:\Python34


I'm using jupyter anaconda to run python, and I don't get this error when import pandas or import random, only import simpy.


I am new to Python (just starting to learn it specifically so I can use Simpy), so I assume I am doing something incorrectly and may be due to my path environment variables or where I have installed simpy.


It appears most of the issues posted online are related to issues with the actual program itself, so I apologize for having a low maintenance problem. But, I have no other avenue for assistance, so any help is appreciated! 

simpy_cmd_install.PNG

bryan....@us.ibm.com

unread,
Mar 2, 2016, 7:22:54 PM3/2/16
to python-simpy
Hi,

You'll need to install the simpy module by running

pip install simpy

you can confirm installation by

pip list

Once installed Python should have no issue importing it.

afar...@gmail.com

unread,
Mar 2, 2016, 8:02:42 PM3/2/16
to python-simpy
Thanks for the help. I attempted that and a few other things and no luck. However, I did find that in Anaconda\Lib\site-packages, the simpy sub folder was "SimPy". I changed the spelling to all lowercase and then I was able to import simpy. Thank you for the help.

bryan....@us.ibm.com

unread,
Mar 2, 2016, 8:07:37 PM3/2/16
to python-simpy
Sorry, I missed the fact that you are not running standard Python.  I'm glad you were able to get it to work for you.
Reply all
Reply to author
Forward
0 new messages