[pymvpa] MacOSX Installation

Christopher J Markiewicz effigies at bu.edu
Wed Feb 25 16:56:49 UTC 2015


On 02/25/2015 11:31 AM, Matthias Zunhammer wrote:
> Hi,
> 
> I succeeded to install pyMVPA on MacOSX, but after starting python and
> typing
> 
>>> import mvpa2
> 
> I get the following error:
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named mvpa2

Likely it's not in your PYTHONPATH.

Find your installation:
sudo updatedb && locate mvpa2/__init__.py

Mine is: /usr/lib/python2.7/dist-packages/mvpa2/__init__.py, so I want
to make sure /usr/lib/python2.7/dist-packages is in my python path.

Examine your path:
python -c 'import sys; print sys.path'

If your directory isn't in there, you can add it with a command like this:

echo 'PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages' >> ~/.bashrc

The single quotes are important. Obviously use the directory you found
above, and if you're not using bash, you may need to append the line to
a different RC file than ~/.bashrc.

Hope this helps.

-- 
Christopher J Markiewicz
Ph.D. Candidate, Quantitative Neuroscience Laboratory
Boston University

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20150225/c3992d8b/attachment.sig>


More information about the Pkg-ExpPsy-PyMVPA mailing list