Menu

Using PyMathProg in Python 2.7

Help
2017-08-09
2017-08-09
  • Sebastian Gonzato

    I would like to incorporate the module pymprog in a Python 2.7 script, but it seems I can only get it to work if I use Python 3.4. For example, the command python practice.py gives me "ImportError: No module named pymprog" while python3 practice.py works fine. Am I missing something here, or does pymprog not work with Python 2.7?

     
  • Julia Helmecke

    Julia Helmecke - 2017-08-22

    Hello Sebastian,

    I am using Pymprog with Python 2.7 and it works fine for me. How did you installed the module? Maybe you have just installed it in your Python3 package directory. Consider installing it with pip for Python2?

    Cheers,
    Julia

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.