"No module named kwant" when using iPython
Hi Kwant-Team! I'm having trouble to "import kwant" via iPython interfaces (Spyder). I can run the python script via "python scriptname.py" but when I try "spyder" and then "scriptname.py" I get the error "no module named kwant". Do you know what I have to do so that iPython recognizes the module? Thank you, Cheryne
Hi Cheryne, I think you are not in the correct environment in Spyder, one in which you didn't install kwant. How did you install your Python and kwant? One easy thing to get everything running is to use Anaconda and then install kwant with: conda install -c basnijholt kwant=1.2.2 Best, Bas On Mon, Aug 29, 2016 at 2:21 PM, Cheryne <cjonay@princeton.edu> wrote:
Hi Kwant-Team!
I'm having trouble to "import kwant" via iPython interfaces (Spyder). I can run the python script via "python scriptname.py" but when I try "spyder" and then "scriptname.py" I get the error "no module named kwant". Do you know what I have to do so that iPython recognizes the module?
Thank you, Cheryne
Bas Nijholt wrote:
One easy thing to get everything running is to use Anaconda and then install kwant with: conda install -c basnijholt kwant=1.2.2
Hi Bas, would you mind to document installation with Conda at https://kwant-project.org/install?
participants (3)
-
Bas Nijholt
-
Cheryne
-
Christoph Groth