Neuron module recognized only in Terminal

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

Moderator: hines

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

Neuron module recognized only in Terminal

Post 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?
Site Admin
Posts: 5819
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: Neuron module recognized only in Terminal

Post by ted »

The instructions in ... 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