Installing NEURON using PIP
Posted: Sun Apr 22, 2012 7:25 pm
Hello all,
I tried to install the NEURON module using the pip command and I seem to get a nice result:
but when I try to import it I get this error:
I have Mac OS version 10.7.3 if that helps in any way.
Does anyone know why the module will not import even though it seems to have installed just fine with pip?
Thanks,
Andreas.
I tried to install the NEURON module using the pip command and I seem to get a nice result:
Code: Select all
dyn1065-216:~ andreasprokopiou$ sudo pip install neuron
Downloading/unpacking neuron
Downloading NEURON-7.2.536.10.tar.gz (29.1Mb): 29.1Mb downloaded
Running setup.py egg_info for package neuron
Installing collected packages: neuron
Running setup.py install for neuron
Successfully installed neuron
Cleaning up...
but when I try to import it I get this error:
Code: Select all
>>> import neuron
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/neuron/__init__.py", line 81, in <module>
import neuron.hoc
ImportError: dlopen(/Library/Python/2.7/site-packages/neuron/hoc.so, 2): no suitable image found. Did find:
/Library/Python/2.7/site-packages/neuron/hoc.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
Does anyone know why the module will not import even though it seems to have installed just fine with pip?
Thanks,
Andreas.