一般來說,它是更容易通過與-python標誌開始神經元第一使用與神經元的Python:
:
nrniv -python
或
nrgui -python
這與Python解釋器啓動神經元
NEURON -- VERSION 7.4 (1373:f15dcfc7847b) f15dcfc7847b
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
你可以在那裏運行python com mands:
>>> import sys
>>> sys.version_info
sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
>>> quit()
的更具挑戰性的路線是先啓動蟒蛇,然後導入神經細胞庫:
$ python
Python 2.7.11 (default, Dec 5 2015, 14:44:47)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import neuron
NEURON -- VERSION 7.4 (1373:f15dcfc7847b) f15dcfc7847b
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
要啓動蟒蛇,然後導入神經元庫,您需要:
在MS Windows上,install PyNEURON
pip install PyNEURON
在其他操作系統的,從源代碼和安裝神經元Python庫編譯神經元
- Compile NEURON from source with python support
- Setup the NEURON library for python
嘗試使用Ctrl + C和看堆棧跟蹤說什麼。然後你可以搜索神經元+錯誤信息。 – tdelaney
你也可以試試這個:python -m trace --trace your_prog.py –