[NEURON] Need help to import NEURON module into Python 3 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: [NEURON] Need help to import NEURON module into Python 3 (/thread-23177.html) |
[NEURON] Need help to import NEURON module into Python 3 - Charlidor - Dec-14-2019 Hello, I need to use the NEURON module (https://neuron.yale.edu/neuron/) for a project research. Therefore, I have installed it (+ XQuartz + command line tools) and the GUI works properly. However, when I try to import/use it through a Python script, it raises this error: Can you help me?Thanks in advance. P.-S.: I use macOS. RE: [NEURON] Need help to import NEURON module into Python 3 - buran - Dec-14-2019 probably you run the file with different python installation than the one where the neuron is installed
RE: [NEURON] Need help to import NEURON module into Python 3 - Charlidor - Dec-15-2019 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 : 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
|