[Neuroimaging] Problem with PySurfer module in Python3

Kadwani, Manorama MKADWANI at mgh.harvard.edu
Mon Jun 15 14:55:14 EDT 2020


Thanks for your help!
Anaconda was installed properly, but I realized I was installing packages in the system's Python using pip, not conda's pip. I activated conda to be my base environment in every shell session and used conda's pip and so PySurfer could be imported.

Manorama
________________________________
From: Neuroimaging <neuroimaging-bounces+mkadwani=mgh.harvard.edu at python.org> on behalf of Eric Larson <larson.eric.d at gmail.com>
Sent: Friday, June 12, 2020 2:04 PM
To: Neuroimaging analysis in Python <neuroimaging at python.org>
Subject: Re: [Neuroimaging] Problem with PySurfer module in Python3


        External Email - Use Caution

So this is the problem, you have some paths mixed between two Python installations: ipython comes from anaconda and python3 comes from the system /usr/local. You should only use one or the other, and make sure that python/ipython/pip all point to the same Python installation otherwise you will have problems like this.

If you want to use the system one, remove anaconda from your PATH / undo its setup steps, and use python3 / pip3 and make sure `ipython` points to something in the /usr/local/ directory.

If you want to use anaconda, ensure that it's properly set up (and use `python` and `pip` directly, not `python3` / `pip3`).

Eric



The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20200615/7b424959/attachment.html>


More information about the Neuroimaging mailing list