This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:gettingstartedmax [2023/12/05 15:16] smerkel |
software:gettingstartedmax [2023/12/09 21:26] (current) smerkel |
||
---|---|---|---|
Line 22: | Line 22: | ||
* You should see something like ''Python 3.6.3 | Anaconda Inc. |'' | * You should see something like ''Python 3.6.3 | Anaconda Inc. |'' | ||
* At the Python REPL (the Python ''>>>'' prompt), exit out of the Python REPL using the command ''exit()''. | * At the Python REPL (the Python ''>>>'' prompt), exit out of the Python REPL using the command ''exit()''. | ||
+ | |||
+ | The following packages should be installed from anaconda to avoid compatibility issues | ||
+ | * numpy: ''conda install -c anaconda numpy'' | ||
+ | * scipy: ''conda install -c anaconda scipy'' | ||
+ | * matplotlib: ''conda install -c anaconda matplotlib'' | ||
+ | * pyqt: ''conda install -c anaconda pyqt'' | ||
+ | * Pmw: ''conda install -c conda-forge pmw'' | ||
+ | * OpenPG: ''conda install pyopenGL'' | ||
+ | |||
+ | Then there are two packages with ended up conflicting when trying to install using conda. Resorting to pip instead: | ||
+ | * fabio: ''python -m pip install fabio'' | ||
+ | * pyopengltk: ''python -m pip install pyopengltk'' | ||
===== Step 2: Fable-3XRD packages with pip or automated install ===== | ===== Step 2: Fable-3XRD packages with pip or automated install ===== | ||
Line 34: | Line 46: | ||
* silx: ''python -m pip install silx'' (not a Fable-3XRD but could become useful in the future) | * silx: ''python -m pip install silx'' (not a Fable-3XRD but could become useful in the future) | ||
- | [[software:grainspotter|GrainSpotter]], also, is available automatically on Anaconda (GrainSpotter is a C program, hence the difference procedure) | + | [[software:grainspotter|GrainSpotter]], also, is available automatically on Anaconda if you are using linux (GrainSpotter is a C program, hence the difference procedure) |
* In a terminal: ''conda install -c fable grainspotter'' | * In a terminal: ''conda install -c fable grainspotter'' | ||
+ | * This does not seem to work with a mac, see below (installing from source) | ||
Those few lines will install the packages, but also thousands of various libraries that they depend on. | Those few lines will install the packages, but also thousands of various libraries that they depend on. | ||
Line 53: | Line 66: | ||
* type ''python setup.py build'', | * type ''python setup.py build'', | ||
* type ''python setup.py install'' | * type ''python setup.py install'' | ||
+ | |||
+ | [[software:grainspotter|GrainSpotter]] is a C program which, on a mac, is not readily available in anaconda | ||
+ | * Download the GrainSpotter source code from [[https://sourceforge.net/p/fable/code/HEAD/tree/GrainSpotter/trunk/]], | ||
+ | * Move into the folder with GrainSpotter and type ''make'', | ||
+ | * Copy ''GrainSpotter.0.90'' somewhere where you can access it easily. This is the executable. | ||
+ | |||
+ | It should work out of the box. | ||
By now, you should be done and have a minimal working installation on your mac. | By now, you should be done and have a minimal working installation on your mac. | ||