0

I'm trying to use the OpenMDAO package in the PyScripter IDE, running Python2.7 on Windows 8. But trying to import openmdao I'm returned with the error "No module named openmdao". The OpenMDAO installation instructions say to (i) run the go-openmdao.py script, and (ii) enter Scripts\activate.bat. How do I do (ii) in PyScripter, or any IDE for that matter?

Thank you, Alex

2 Answers 2

1

I've been able to use OpenMDAO in an IDE (Spyder) by changing the path to the Python executable in the Spyer preferences from the default system binary to the one inside of the virtualenv directory. If you can do this, the IDE will be operating within the virtualenv, and OpenMDAO should become importable. This should also work for any other python virtualenv that you would like to use within an IDE.

Sign up to request clarification or add additional context in comments.

1 Comment

How would I "[change] the path to the Python executable in the Spyer preferences from the default system binary to the one inside of the virtualenv directory"? Sorry if this is obvious, I'm relatively new to Python.
1

I have used it with PyCharm. It works very well. You can import the virtual environment created by openMDAO in the preferencies/project/interpreter/add local. PyCharm community version is free and has a nice debugging support, so I can recommend it for beginners in python. I never heard about PyScripter, but if there is a place where you can change the default python executable to the one in openmdao/Script, that might work.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.