You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install tensorflow-macos and metal with correct versioning (I had them work with 2.9 and 0.5) pip install tensorflow-macos==2.9 pip install tensorflow-metal==0.5.0
Download cosmopower manually git clone https://github.com/alessiospuriomancini/cosmopower cd cosmopower
Open requirements.txt and change the tensorflow dep as follows:
tensorflow>2.0 -> tensorflow-macos>2.0
Install cosmopower manually pip install .
Go back to soliket folder and install it cd path/to/your/soliket pip install -e .
The above should let you install SOLikeT.
In order to pass tests (both with pytest and within the tox env), I needed to add camb to soliket-tests.yml in the conda requirements to be installed via conda-forge (might work also via pip, not tried). Simply, add camb before the pip requirements.
The text was updated successfully, but these errors were encountered:
mgerbino
added
repo
Related to repo functionality
tests
Improvements to tests
non cosmo
Infrastructure tasks which do not require specific domain knowledge in cosmology
labels
Feb 28, 2023
@mgerbino can this be closed now? We should update the installation instructions in general. I think I remember the situation changed due to Alessio's action?
@itrharrison , I asked Alessio. Last time we spoke, the issue wasn't solved and we still needed to go through the procedure above to have tensowflow installed on M1
This is a compilation of instructions I followed to make SOLikeT work (and pass the tox tests) on the new macos M1.
System: Monterey 12.6.3, M1 chip, arm64
The main issue was to have tensorflow correctly installed (see here) and have cosmopower find it.
bash ~/miniconda.sh -b -p $HOME/miniconda
source ~/miniconda/bin/activate
conda install -c apple tensorflow-deps
conda env create -n my_env -f soliket-tests.yml
conda activate my_env
pip install tensorflow-macos==2.9
pip install tensorflow-metal==0.5.0
git clone https://github.com/alessiospuriomancini/cosmopower
cd cosmopower
tensorflow>2.0 -> tensorflow-macos>2.0
pip install .
cd path/to/your/soliket
pip install -e .
The above should let you install SOLikeT.
In order to pass tests (both with pytest and within the tox env), I needed to add camb to soliket-tests.yml in the conda requirements to be installed via conda-forge (might work also via pip, not tried). Simply, add camb before the pip requirements.
The text was updated successfully, but these errors were encountered: