workaround for getting wavespectra to work in a pip environment if you do not have a fortran compiler #115
Closed
RubendeBruin
started this conversation in
Show and tell
Replies: 1 comment
-
Closing this as fortran is no longer required in wavespectra |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR;
install using conda in a separate environment, then copy the package folder to your pip environment
Why:
If you do not have a fortran compiler, then you can not build the package yourself.
Step1:
Get miniconda3 (https://docs.anaconda.com/free/miniconda/index.html)
Step2:
make a miniconda environment for the same python version as you have in your other python environment.
conda create -n temp python=3.11
and activate it
activate temp
Step3:
install mamba
conda install -c conda-forge mamba
Step4:
install wavespecta using mamba
mamba install -c conda-forge wavespectra
Step5:
Locate the installed folder
Step6:
Copy it to your main python environment.
That means: copy the whole "wavespectra" folder from yourcondadist/libs/site-packages/ to yourmainpython/libs/site-packages
Step7:
Delete your conda stuff, we will not longer need it
Step8:
Go to your main python environment.
Install all wave-spectra requirementes:
pip install click cmocean dask matplotlib numba pandas python-dateutil pyyaml sortedcontainers scipy toolz typing_extensions xarray
Step9:
![image](https://private-user-images.githubusercontent.com/34062862/310439041-50f53b8b-7178-4ab9-b7a2-d029633aa548.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTY4MjcsIm5iZiI6MTcxOTE5NjUyNywicGF0aCI6Ii8zNDA2Mjg2Mi8zMTA0MzkwNDEtNTBmNTNiOGItNzE3OC00YWI5LWI3YTItZDAyOTYzM2FhNTQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAyMzUyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjNDM4MTQwZmZiOWE4YWE3YTk3NTc2ZWFmY2NhNTdlZWNiMmNmNmM0ZmE4M2I5ZTYyNmM2MGE0N2U4ZGI2ZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7Aaf2uM9O9-pIIv80O0IfqnkpV72mpppLV3tRv_JYg4)
Keep your fingers crossed and give it a try:
Beta Was this translation helpful? Give feedback.
All reactions