#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    6
    Rep Power
    0

    ImportError: No module named pulp


    Hello i am new at python, and i am running a program that uses the pulp API but i am getting this error:

    File "C:\Python27\Lib\SITE-P~1\PYTHON~2\pywin\framework\scriptutils.py", line 325, in RunScript
    exec codeObject in __main__.__dict__
    File "C:\Python27\solve_int.py", line 3, in <module>
    import pulp
    ImportError: No module named pulp

    Any ideas?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    ok some minor problem in this program so you can see your c: drive and enter python folder in create new module folder and give specific path for your server.
  4. #3
  5. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,902
    Rep Power
    481
    Do you have a module named pulp on your computer?
    Where is it? Let's suppose it is in this directory:
    c:\Pulp\is\here
    Code:
    import sys
    sys.path.append(r'c:\Pulp\is\here')
    import pulp
    should work.

    Or you could change your operating system shell PYTHONPATH environment variable.

    Or you could install pulp.
    [code]Code tags[/code] are essential for python code and Makefiles!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    6
    Rep Power
    0
    Great thanks

IMN logo majestic logo threadwatch logo seochat tools logo