[Qgis-user] Pandas in QGIS - MAC

William Kyngesburye woklist at kyngchaos.com
Wed Aug 15 19:25:49 PDT 2018


Well, it looks like pandas has some C code, it's not pure Python, so you would need Xcode tools installed to be able to install pandas.

Also note that QGIS 2.18 on Mac (my "official" build) uses the system Python 2.7.  It can NOT use any other Python, like Anaconda, since it is linked to the Python library.

MAYBE, if you install into Anaconda that is based on Python 2.7, you could then copy it into the user site-packages at /Library/Python/2.7/site-packages.  You'd have to make sure its dependencies are also installed (part of my QGIS stack includes numpy and pytz).

I suggest installing QGIS 3, which uses the python.org Python 3.6 (again, NOT Anaconda or other python), which has a prebuilt wheel for pandas that can be installed with pip3, no Xcode needed.

> On Aug 15, 2018, at 8:29 AM, Philip Hamoui <philippos86 at gmail.com> wrote:
> 
> Hello everyone, 
> 
> This is my first time using this service, and not quite sure how to use it.
> 
> This is my question:
> 
> I'm on MAC, and I want to import pandas into my QGIS V2.18.
> 
> I have tried following the steps of this answer on StackOverflow <https://stackoverflow.com/questions/31532501/how-to-install-pandas-library-in-qgis-python/31533128#31533128> and raised an issue GitHub <https://github.com/pandas-dev/pandas/issues/22340#issuecomment-412953428>. 
> 
> Uninstalled and reinstalled pandas using pip, and confirm its added to the PATH, still not working.
> 
> How can I add pandas to my QGIS?
> 
> 
> Philip
> 
> 
> 
> -- 
>  <https://www.linkedin.com/in/philip-hamoui/>
> Philip HAMOUI
> Kawaguchi Laboratory,
> Department of Computational Science
> and Engineering, Graduate School of Engineering,
> Nagoya University
> 名古屋大学大学院 
> 工学研究科・計算理工学専攻・河口研究室
> Mail: philip at ucl.nuee.nagoya-u.ac.jp <mailto:philip at ucl.nuee.nagoya-u.ac.jp>
> Mobile: +81-80-4526-2135
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings.  And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180815/64803864/attachment.html>


More information about the Qgis-user mailing list