conda fenics ipython does not work


434
views
1
8 months ago by
I installed like this

conda create -n fenics -c conda-forge fenics mshr ipython matplotlib scipy
source activate fenics

If I start ipython and do “from dolfin import *”, it says module does not exist.

With python it works. But I need ipython since I also want to use notebook. Anybody knows a solution for this ?
Community: FEniCS Project

1 Answer


0
8 months ago by
Hi Praveen,

It's likely that you already have a copy of IPython installed somewhere on your computer, and this is not linked to the Anaconda Python environment you're working in. If you type 'which ipython', it should tell you the location that it's running IPython from.

Anaconda creates a directory, which is normally ~/anaconda3 in which it keeps all of the things it installs. Within that, you have a folder called envs for each environment.

You can likely fix the issue by just typing 'conda install ipython' after doing 'source activate fenics'.
I think my ipython is correct
$ source activate fenics
(fenics) $ which ipython
/Users/praveen/Applications/anaconda/envs/fenics/bin/ipython​

'conda install ipython'  is wrong way to install I think, since it installs from conda instead of conda-forge. Since fenics is installed from conda-forge, all stuff in this environment must be from conda-forge. See this

https://fenicsproject.org/qa/13259/how-to-find-dolfin-after-installing-fenics-through-conda
written 8 months ago by Praveen C  
It was my own mistake. I had aliased ipython to some other version, so it was running the wrong ipython. Sorry for wasting your time.
written 8 months ago by Praveen C  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »