JModelica: Python Shell and IPython trouble importing package -


so installed jmodelica , python 2.7 included. when use ipython-console , try import following (it works):

from pymodelica import compile_fmu

however when write in python shell program says:

traceback (most recent call last): file "", line 1, in pymodelica import compile_fmu importerror: no module named pymodelica****

what problem here? want use python shell since can write scripts there.

regards, jasir

the problem python needs know paths jmodelica store python package "pymodelica". if use ipython installation of jmodelica, automatically sets correct paths. same goes regular python shell, if use link installation of jmodelica, should work while if use python shell directly python installation, not work.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -