NEURON 8.2 install / OS X 15.2 Sequoia / Python 3.12.7 Anaconda installation difficulties
Posted: Mon Jan 20, 2025 10:54 pm
Hello! I upgraded to OS X 15.2 (Sequoia), then installed Python 3.12.7 via the Anaconda distribution, and got a fresh download of NEURON 8.2 using the package installer. I can start the NEURON GUI from the application folder but not from the python command line, nor from a jupyter notebook.
When I try "pip3 install neuron" I get "Requirement already satisfied: neuron in /Applications/NEURON/lib/python (8.2.0)"
When I try "from neuron import h, gui" I get:
<---start quote--->
Traceback (most recent call last):
File "/Applications/NEURON/lib/python/neuron/__init__.py", line 135, in <module>
from . import hoc
ImportError: cannot import name 'hoc' from partially initialized module 'neuron' (most likely due to a circular import) (/Applications/NEURON/lib/python/neuron/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/NEURON/lib/python/neuron/__init__.py", line 137, in <module>
import neuron.hoc
ModuleNotFoundError: No module named 'neuron.hoc'
<---end quote--->
I don't know what "partially initialized module" means. I don't know what I'm doing wrong. Any help appreciated!
Thanks -- Peter Thomas
When I try "pip3 install neuron" I get "Requirement already satisfied: neuron in /Applications/NEURON/lib/python (8.2.0)"
When I try "from neuron import h, gui" I get:
<---start quote--->
Traceback (most recent call last):
File "/Applications/NEURON/lib/python/neuron/__init__.py", line 135, in <module>
from . import hoc
ImportError: cannot import name 'hoc' from partially initialized module 'neuron' (most likely due to a circular import) (/Applications/NEURON/lib/python/neuron/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/NEURON/lib/python/neuron/__init__.py", line 137, in <module>
import neuron.hoc
ModuleNotFoundError: No module named 'neuron.hoc'
<---end quote--->
I don't know what "partially initialized module" means. I don't know what I'm doing wrong. Any help appreciated!
Thanks -- Peter Thomas