Try permanently setting the PATH environment variable for the system instead of through the command line. (See below.) In addition, make sure you are using the 32 bit NEURON to match your 32 bit Python.
For completeness, I just tried the following on a machine starting from no OS, and it worked:
- Installed Windows 7 SP 1
- Installed 32 bit* Anaconda 2.5.0 for all users otherwise accepting the defaults
- Installed 32 bit NEURON 7.4 as downloaded today, March 11th, selecting the bold option to "Set DOS environment" ** but otherwise accepting the defaults
- "start button" - right-click on "computer" - properties - "Advanced system settings" - "Environment Variables" - "New" ***
- For "Variable name": PATH
- For "Variable value": c:\nrn\bin
- Then click "OK"
- Then click "OK" on the dialog below that
- Then click "OK" on the third dialog below that
- Launch the Anaconda Prompt****, *****
- Type: python
- Type: import neuron
Code: Select all
Deactivating environment "C:\Anaconda2"...
Activating environment "C:\Anaconda2"...
[Anaconda 2] C:\Users\ramcdougal>python
Python 2.7.11 |Anaconda 2.5.0 (32-bit)| (default, Jan 29 2016, 15:36:56) [MSC v.
1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import neuron
NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
* I note that you're using 32 bit Python on 64-bit Windows 7, so these instructions follow that and use 32 bit NEURON as well. I assume 64 bit NEURON will not play nice with 32 bit Python, but I did not test that.
** The "Set DOS environment" option sets the NEURONHOME environment variable to "c:\nrn" and adds "c:\nrn\lib\python" to the PYTHONPATH
*** If you already have a PATH environment variable, edit it instead and add c:\nrn\bin
**** In particular, the changes we just made will only work with NEW console windows; do not reuse an existing one, just launch a new one
***** at this point, I also tested: cmd, ipython, and Jupyter QtConsole (for the last two, Python is already launched so skip that step). Each worked