Search code examples
pythonpython-2.7importerrorsimpy

python 2.7 SimPy ImportError


I have a virtualenv with python 2.7 and pip 9.0.1 I have installed SimPy with pip install SimPy

but when i try to import import SimPy

>>> import SimPy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named SimPy

Solution

  • I had a simulation file for simpy 2.3.1. but when installed pip install SimPy It installed simpy 3.1 which was different from 2.3.1

    So I had to install SimPy by pip install SimPy==2.3.1 and it solved the problem