Page 1 of 1

Neuron module recognized only in Terminal

Posted: Fri May 26, 2017 7:09 pm
by Qonrad
I'm on macOS 10.12.4, and I'm trying to write python code for NEURON using IDLE, but it doesn't seem to recognize the neuron modules, giving me the error "no module named neuron". It doesn't work whether I'm executing a .py file written in IDLE or I'm using IDLE's shell.

I believe my installation is OK because I can run neuron commands directly after typing 'python2.7' into terminal, as well as execute .py files from the terminal correctly.

Any idea how I can get IDLE to accept the modules?

Re: Neuron module recognized only in Terminal

Posted: Sat May 27, 2017 1:18 pm
by ted
The instructions in
http://www.neuron.yale.edu/ftp/neuron/n ... nstall.pdf
might help, especially the part about PYTHONPATH. That pdf was written a couple of years ago, but it should still be a useful guide.