Installing NEURON using PIP

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
Prokopiou

Installing NEURON using PIP

Post by Prokopiou » 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:

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
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.

uri.cohen
Posts: 24
Joined: Wed Jul 20, 2011 9:14 am

Re: Installing NEURON using PIP

Post by uri.cohen » Mon Apr 23, 2012 2:26 am

Hello Andreas,
The option to use PIP to install NEURON is a work-in-progress which doesn't support MacOS yet. Mike Vella can provide more details, I'll forward it to him.
Uri

vellamike

Re: Installing NEURON using PIP

Post by vellamike » Tue Apr 24, 2012 4:50 am

Hi Andreas,

I'm afraid as Uri points out PIP will currently only install the neuron package for Windows or 64bit Linux. I have updated the package and it will now stop you from trying to install it on a mac.

Mike

Post Reply