Thanks for your reply.
Ultimately, I wrote a python path into my file .py linking the script to the module neuron located in python within the file NEURON 7.7 :
Ultimately, I wrote a python path into my file .py linking the script to the module neuron located in python within the file NEURON 7.7 :
import sys sys.path.insert(0, "/Applications/NEURON-7.7/nrn/lib/python")It works properly but not for some imports for instance
from neuron import h, rxd
Error:from neuron import h, rxd
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
from neuron import h, rxd
File "/Applications/NEURON-7.7/nrn/lib/python/neuron/rxd/__init__.py", line 7, in <module>
from . import rxd
File "/Applications/NEURON-7.7/nrn/lib/python/neuron/rxd/rxd.py", line 2, in <module>
from . import species, node, section1d, region
File "/Applications/NEURON-7.7/nrn/lib/python/neuron/rxd/species.py", line 1, in <module>
from .rxdmath import _Arithmeticed
File "/Applications/NEURON-7.7/nrn/lib/python/neuron/rxd/rxdmath.py", line 2, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'