-1

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
Al-Alamin
  • 1,438
  • 2
  • 15
  • 34
  • 1
    try my solution – eyllanesc Nov 27 '16 at 02:02
  • 1
    eyllanesc your solution works. but I have an old simmulation file which was written in SimPy 2.3. If I install SimPy 2.3 then I will also have to edit many other methods that were called in that old file because those method's name or parameter have also changed. So using simpy 2.3 was the easiest way to get started for me. – Al-Alamin Nov 28 '16 at 04:30
  • 1
    You should point out the version of simpy and the program that generates the error – eyllanesc Nov 28 '16 at 04:33
  • 1
    Edit your question with these requirements – eyllanesc Nov 28 '16 at 04:34

2 Answers2

6

read the docs, change SimPy to simpy

>> import simpy
...
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
2

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

Al-Alamin
  • 1,438
  • 2
  • 15
  • 34