Installing Larch without installing Anaconda
Dear Mr or Mrs, I am Laurent Tranchant, post-doctoral researcher working at the IPANEMA laboratory at the SOLEIL synchrotron in France. I would like to install Larch (especially to use XAS Viewer to treat my XAS data) without installing Anaconda on MacOS. Do you know if it is possible or not ? For example by using MacPorts instead of Anaconda... It seems that all the solutions proposed online to install Larch on MacOS require the installation of Anaconda Python environment. I thank you in advance for your help. Best regards, Laurent Tranchant
Hi Laurent, I have successfully installed Larch on Debian Linux systems using the regular package manager plus pip. This should be possible on MacOS as well. Carlo -- Carlo Segre, Duchossois Professor of Physics Illinois Institute of Technology On Wed, Nov 30, 2022, 09:05 TRANCHANT Laurent < laurent.tranchant@synchrotron-soleil.fr> wrote:
Dear Mr or Mrs,
I am Laurent Tranchant, post-doctoral researcher working at the IPANEMA laboratory at the SOLEIL synchrotron in France. I would like to install Larch (especially to use XAS Viewer to treat my XAS data) without installing Anaconda on MacOS. Do you know if it is possible or not ? For example by using MacPorts instead of Anaconda... It seems that all the solutions proposed online to install Larch on MacOS require the installation of Anaconda Python environment.
I thank you in advance for your help.
Best regards,
Laurent Tranchant _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
Hi Laurent, On Wed, Nov 30, 2022 at 9:05 AM TRANCHANT Laurent < laurent.tranchant@synchrotron-soleil.fr> wrote:
Dear Mr or Mrs,
I am Laurent Tranchant, post-doctoral researcher working at the IPANEMA laboratory at the SOLEIL synchrotron in France. I would like to install Larch (especially to use XAS Viewer to treat my XAS data) without installing Anaconda on MacOS. Do you know if it is possible or not ? For example by using MacPorts instead of Anaconda... It seems that all the solutions proposed online to install Larch on MacOS require the installation of Anaconda Python environment.
Yes, as Carlo says, I think it should be possible to install Larch on MacOS with Python from Python.org and probably from MacPorts too. The main requirements are "the normal scientific python stack" which should be available with essentially every distribution. To get the GUIs, wxPython is required. PyPI has this for MacOS (and Windows), so that it should work. I think I have not tried Larch with MacPorts or "Python.org Python" on MacOS for a few years. But if you are interested, I would say to go ahead and try, maybe even start by trying `pip install xraylarch`. If you're interested in using the GUIs, do `pip install wxmplot` (to be clear, wxPython is not a requirement for using Larch as a library, but is needed for the GUIs). Let me know how it goes or if you run into any problems or have any questions. --Matt
Dear Mr or Mrs,
I sent you this message about ten days ago but on my side I did not receive any answer.
I would like to avoid installing Anaconda during the installation of Larch on my MacOS computer. I would like to know if it is possible or not.
I thank you in advance for your help.
Best regards,
Laurent Tranchant
De: "TRANCHANT Laurent"
Dear Laurent Tranchant,
I may not be the best guy to answer yet I have a simple answer.
On MAC-OS the existing python is made by apple.
The following is about Apple Python
Apple: Mac OS X comes with a pre-installation of Python, usually one or two years old. This can be sufficient for some needs, but the MacPythonhttps://wiki.python.org/moin/MacPython community recommends installing a newer, more capable, version. Don't get rid of the Apple version, though! It's used by some system utilities.
copied from https://wiki.python.org/moin/MacPython/PythonDistributionsForMac
Larch don't want to disturb this native python on MAC.
So the ANACONDA method is best to install LARCH and keep your apple created python safe.
When you don't want ANACONDA, just delete the anaconda folder. That's it no questions asked.
Mahendra
============================
Dr. K Uma Mahendra Kumar
Asst Professor of Physics
Dept of Physics - SAS
Vellore Institute of Technology - Vellore,TN 632 014
Bharat
https://sites.google.com/view/umamahendrakumar/home
________________________________
From: Ifeffit
Hi Laurent, Hopefully, you saw the earlier replies - if not, see the archived messages at https://millenia.cars.aps.anl.gov/pipermail/ifeffit/2022-November/thread.htm... The basic answer is that you do not need to use Anaconda to run Larch on macOS. There is a MacPorts port available, for example. In fact, Larch is distributed with PyPI so you should (or at least "may") be able to install it in any Python environment, provided the dependencies are also available. I also agree with Dr. Kumar's response that installing into a system-provided Python may not be the best idea (on any system, but especially macOS). Python does support virtual environments pretty well, which I would highly recommend to anyone wanting to install using a system-provided Python. If you have tried installing Larch and run into trouble, let us know what you tried and what did not work. On Mon, Dec 12, 2022 at 10:14 AM TRANCHANT Laurent < laurent.tranchant@synchrotron-soleil.fr> wrote:
Dear Mr or Mrs,
I sent you this message about ten days ago but on my side I did not receive any answer. I would like to avoid installing Anaconda during the installation of Larch on my MacOS computer. I would like to know if it is possible or not.
I thank you in advance for your help.
Best regards,
Laurent Tranchant
------------------------------ *De: *"TRANCHANT Laurent"
*À: *"ifeffit" *Envoyé: *Mercredi 30 Novembre 2022 13:49:11 *Objet: *Installing Larch without installing Anaconda Dear Mr or Mrs,
I am Laurent Tranchant, post-doctoral researcher working at the IPANEMA laboratory at the SOLEIL synchrotron in France. I would like to install Larch (especially to use XAS Viewer to treat my XAS data) without installing Anaconda on MacOS. Do you know if it is possible or not ? For example by using MacPorts instead of Anaconda... It seems that all the solutions proposed online to install Larch on MacOS require the installation of Anaconda Python environment.
I thank you in advance for your help.
Best regards,
Laurent Tranchant
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- --Matt Newville <newville at cars.uchicago.edu> 630-327-7411
Dear Matthew,
I thank you very much for your quick reply as well as this of Carlo Segre. I apologize, I did not look at the archived messages and now it is clear.
I will try to install Larch as you said and keep you in touch if I have any trouble or success !
Bests,
Laurent
De: "Matt Newville"
participants (4)
-
Carlo Segre
-
Matt Newville
-
TRANCHANT Laurent
-
Uma Mahendra Kumar K