Try to import dolfin in python 2.7 - "No module named dolfin"
Hello, I'm very new to dolfin and FEniCS. I had a problem importing dolfin to python
I downloaded python 2.7 from python.org and installed it on my windows 7 machine. And I also downloaded the latest FEniCS installation packages for window 7 and installed it separately.
Now I opened my python 2.7 shell and try to import dolfin. ( type "from dolfin import *")
It appeared the error message saying that " No module named dolfin". However, if i use the FEniCS command shell and run a python program to import doflin, it works. The FEniCS seems to have everything installed itself separately from the python 2.7 that I previous installed. It looks that it has its own python and other extension installed. I try to add the sys search path for dolfin in python 2.7 but it didn't work. Or maybe I didn't do it correctly.
I installed ipython, numpy and matplotlib after I installed python 2.7 and they all worked well. I could import them directly in the ipython command shell. I wonder is there an easy way to import dolfin and use it in the python 2.7 command shell if they were installed separately?
Thanks.
Tong
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tong
- Solved:
- Last query:
- Last reply: