Search code examples
pythonpython-3.xanacondapython-importsimpy

importing simpy in python - unnamed module error


I am trying to import simpy package in python, however I get the unnamed module error. I am on a Mac OSX and have anaconda installed. I installed it using pip install simpy command. These outputs could also be helpful:

$ which python
//anaconda/bin/python

$ pip list
simpy (3.0.10)

$ conda list
simpy                     3.0.10                    <pip>

(If relevant, I am using PyCharm as IDE)


Solution

  • The error could be caused by your project configuration in pycharm pointing to another python interpreter, maybe python3 or a virtualenv?

    Check it by going through your project settings.

    Make sure you are using the same interpreter in PyCharm as the one where you installed your module.