Neuron module recognized only in Terminal

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
Qonrad
Posts: 2
Joined: Wed May 24, 2017 7:40 pm

Neuron module recognized only in Terminal

Post by Qonrad » Fri May 26, 2017 7:09 pm

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?

ted
Site Admin
Posts: 5369
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Neuron module recognized only in Terminal

Post by ted » Sat May 27, 2017 1:18 pm

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.

Post Reply