|
|
A **manual installation** is always possible, **especially for Macs**
|
|
|
|
|
|
<!--
|
|
|
This solution can be adapted if the procedure described above does not work.\
|
|
|
This can be the case, for example under MacOS.
|
|
|
-->
|
|
|
|
|
|
Here you will find a list of installation recipes proposed by participants of Fidle who successfully managed to install an environment for Fidle on a Mac.
|
|
|
|
|
|
Thanks a lot for these contributions !
|
|
|
|
|
|
<!--
|
|
|
##
|
|
|
**- Notes -**
|
|
|
|
|
|
From Kevin C. on nevember 2022<br>
|
... | ... | @@ -18,176 +24,51 @@ Under **Mac Monterey** (and may be under Big Sur), you may need to update your P |
|
|
For instance, with Python 3.9.9 pip installation of the following environment succeeds and Jupyterlab can be launched.
|
|
|
|
|
|
Thanks a lot for these contributions !
|
|
|
|
|
|
-->
|
|
|
**- Contents -**
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
## 1 - First install Tensorflow from the official install procedure
|
|
|
|
|
|
The easiest way is to follow the official procedure proposed on the Tensorflow and PyTorch web sites:
|
|
|
|
|
|
- **https://www.tensorflow.org/install/pip?hl=fr**
|
|
|
- **https://pytorch.org/**
|
|
|
|
|
|
## 2 - Required additional packages for Fidle
|
|
|
|
|
|
Once Tensorflow is installed following the official procedure, you must install the following additional modules:
|
|
|
|
|
|
- Scikit-image
|
|
|
- Scikit-learn
|
|
|
- Matplotlib
|
|
|
- plotly
|
|
|
- barviz
|
|
|
- Pandas
|
|
|
- Pandoc
|
|
|
- pyyaml
|
|
|
- Jupyterlab
|
|
|
- fidle
|
|
|
|
|
|
If you have followed the official pip procedure, you should be able to install these modules with the command :
|
|
|
|
|
|
```
|
|
|
pip install Scikit-image Scikit-learn Matplotlib plotly barviz Pandas Pandoc pyyaml Jupyterlab fidle
|
|
|
```
|
|
|
|
|
|
Once your Python environment is installed, **you should be able to follow the standard Linux** procedure **[from point 4)](Using-Fidle/Linux%20installation%20with%20pip#4-install-notebooks-et-datasets)**
|
|
|
|
|
|
|
|
|
## Annexe 1 : Mac M1 with conda
|
|
|
|
|
|
An installation procedure for M1 macs, proposed by Kévin C. (thanks a lot !!)
|
|
|
Under **MacOS 12.6 Mac M1Pro**, the following procedure using **conda 22.9.0** seems to work:
|
|
|
```
|
|
|
conda create python=3.9 --name fidle
|
|
|
conda activate fidle
|
|
|
conda install -c apple tensorflow-deps
|
|
|
python -m pip install tensorflow-macos
|
|
|
python -m pip install tensorflow-metal
|
|
|
conda install pytorch torchvision -c pytorch
|
|
|
conda install -c conda-forge Scikit-image
|
|
|
conda install -c conda-forge Scikit-learn
|
|
|
conda install -c conda-forge Matplotlib
|
|
|
conda install -c conda-forge Pandas
|
|
|
conda install -c conda-forge Pandoc
|
|
|
conda install -c conda-forge pyyaml
|
|
|
conda install -c plotly plotly
|
|
|
conda install -c conda-forge Jupyterlab
|
|
|
python -m pip install --upgrade barviz
|
|
|
python -m pip install --upgrade fidle
|
|
|
|
|
|
mkdir fidle-tp
|
|
|
cd fidle-tp
|
|
|
fid install --quiet
|
|
|
fid check
|
|
|
```
|
|
|
`fid check` gives something like :
|
|
|
|
|
|
```
|
|
|
==========================================================
|
|
|
fid - Your favorite Fidle admin command :-) (v2.0b52)
|
|
|
==========================================================
|
|
|
|
|
|
Notebooks and datasets can only be found if they are in/near the explored folder.
|
|
|
Explored directory is : /Users/xxx/fidle-tp
|
|
|
|
|
|
Datasets dir found :
|
|
|
|
|
|
/Users/xxx/fidle-tp/datasets-fidle (Datasets Fidle / 1.6)
|
|
|
The environment variable FIDLE_DATASETS_DIR is : undefined
|
|
|
|
|
|
Notebooks dir found :
|
|
|
|
|
|
/Users/xxx/fidle-tp/fidle-master (Notebooks Fidle / 2.2.2)
|
|
|
|
|
|
Check environment :
|
|
|
|
|
|
Python : Ok (3.9.13)
|
|
|
Fidle module : Ok (2.0b52)
|
|
|
tensorflow : Ok (2.10.0)
|
|
|
tensorflow.keras : Ok (2.10.0)
|
|
|
numpy : Ok (1.23.2)
|
|
|
sklearn : Ok (1.1.3)
|
|
|
skimage : Ok (0.19.3)
|
|
|
matplotlib : Ok (3.6.2)
|
|
|
plotly : Ok (5.11.0)
|
|
|
pandas : Ok (1.5.1)
|
|
|
jupyterlab : Ok (3.5.0)
|
|
|
torch : Ok (1.13.0)
|
|
|
torchvision : Ok (0.14.0)
|
|
|
|
|
|
```
|
|
|
|
|
|
Vous pouvez maintenant lancer votre jupyter lab !
|
|
|
Depuis un shell :
|
|
|
```
|
|
|
cd (...)/fidle-tp
|
|
|
conda activate fidle
|
|
|
jupyter lab
|
|
|
```
|
|
|
|
|
|
## Annexe 2 - Install with conda / MacBook Pro (2019)
|
|
|
Thanks to Thierry G.
|
|
|
|
|
|
**1) Install conda or miniconda:**
|
|
|
|
|
|
Actual version python 3.9 fonctions perfectly
|
|
|
|
|
|
(see [anaconda web site](https://www.anaconda.com/products/individual))
|
|
|
|
|
|
**2) Configure conda:**
|
|
|
|
|
|
```
|
|
|
conda create -n fidle23 python=3.9
|
|
|
conda activate fidle23
|
|
|
pip install tensorflow
|
|
|
conda install pytorch torchvision torchaudio -c pytorch
|
|
|
pip install Scikit-image Scikit-learn Matplotlib plotly barviz Pandas Pandoc pyyaml Jupyterlab fidle
|
|
|
|
|
|
# to keep a trace of the installed modules
|
|
|
conda list -e > fidle_requirements2023.txt
|
|
|
|
|
|
```
|
|
|
**2) Prepare environment:**
|
|
|
|
|
|
```
|
|
|
mkdir ~/Documents/fidle-tp
|
|
|
cd ~/Documents/fidle-tp/
|
|
|
fid install --quiet
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
**3) Declare FIDLE_DATASETS_DIR=**
|
|
|
|
|
|
**Procedure for the [fish](https://fishshell.com) shell**
|
|
|
(Must be adapted to other shells)
|
|
|
|
|
|
```
|
|
|
nano ~/.config/fish/config.fish
|
|
|
|
|
|
```
|
|
|
|
|
|
**4) Set up path required for the fidle training:**
|
|
|
|
|
|
```
|
|
|
# PATH required for the fidle training
|
|
|
set -gx FIDLE_DATASETS_DIR ~/Documents/fidle-tp/datasets-fidle/
|
|
|
|
|
|
```
|
|
|
Close the config.fish file, then
|
|
|
|
|
|
```
|
|
|
source ~/.config/fish/config.fish
|
|
|
|
|
|
```
|
|
|
|
|
|
**5) Start Jupyter Lab**
|
|
|
|
|
|
```
|
|
|
(conda activate fidle23) # if active environment is not already fidle23
|
|
|
jupyter lab &
|
|
|
## General requirements for Fidle
|
|
|
|
|
|
- You will need Tensorflow and Pytorch.
|
|
|
- You can check the official procedure proposed on the Tensorflow and PyTorch web sites:
|
|
|
- **https://www.tensorflow.org/install/pip?hl=fr**
|
|
|
- **https://pytorch.org/**
|
|
|
- You need other required additional packages
|
|
|
- Scikit-image, Scikit-learn
|
|
|
- Matplotlib
|
|
|
- plotly
|
|
|
- barviz
|
|
|
- Pandas
|
|
|
- Pandoc
|
|
|
- pyyaml
|
|
|
- Jupyterlab
|
|
|
- fidle
|
|
|
|
|
|
|
|
|
- Once your Python environment is installed, **you should be able to follow the standard Linux** procedure **[from point 4)](Using-Fidle/Linux%20installation%20with%20pip#4-install-notebooks-et-datasets)**
|
|
|
|
|
|
|
|
|
## Installation Feedbacks from Fidle participant
|
|
|
|
|
|
- November 2023 - For - Proposed by Pauline M.
|
|
|
- Setup:
|
|
|
- [Using-Fidle/Manual-installation/Feedback_Mac_Conda_nov2023](Recipe)
|
|
|
Thanks Pauline M.
|
|
|
- November 2022 - For Mac M1 with conda - Proposed by Kévin C.
|
|
|
- Setup: **MacOS 12.6 Mac M1Pro**, **conda 22.9.0**
|
|
|
- [Using-Fidle/Manual-installation/Feedback_Mac12-6_M1_Conda22-9_nov2022](Recipe)
|
|
|
Thanks Kévin C.
|
|
|
- November 2022 - For MacBook Pro (2019) - Proposed by Thierry G.
|
|
|
- Setup: **MacBook Pro**, **conda**
|
|
|
- [Using-Fidle/Manual-installation/Feedback_MacBookPro_Conda_nov2022](Recipe)
|
|
|
Thanks to Thierry G.
|
|
|
- November, 25 2021 - For Mac Monterey - Proposed by Sébastien M.
|
|
|
- Setup: *Mac Monterey* (may be under Big Sur)
|
|
|
- [Using](Recipe)
|
|
|
Thanks Sébastien M.
|
|
|
|
|
|
```
|
|
|
|
|
|
[Back to the install procedure](Using Fidle/install fidle) |
|
|
\ No newline at end of file |