hydrogeoscience / pygtide

A Python module and wrapper for ETERNA PREDICT to compute gravitational tides on Earth
Mozilla Public License 2.0
50 stars 19 forks source link

Installation problems in Windows #36

Closed MDiazPy closed 7 months ago

MDiazPy commented 1 year ago

HI have issues installing the package in windows,

I created a new environment from scratch in python 38, I am using Anaconda.

image

trichter commented 1 year ago

Hm, I am not sure what exactly is the problem. I guess compilation problems on Windows are quite common. Unfortunately I cannot debug this issue easily, because I am working on a linux machine.

alexscolyer commented 1 year ago

I have a similar issue installing pygtide on my windows machine. Is there a work-around?

image

MiguelonGonzalez commented 10 months ago

Here I share my log of commands for a Linux installation (Ubuntu), if could be useful to somebody:

I firstly create a new environment with conda, in which I then download the appropriate compilers for linux and the pygtide dependencies.

conda create -n pygtide python=3.6
conda activate pygtide
conda install -c conda-forge gfortran_linux-64
conda install -c conda-forge gcc_linux-64 gxx_linux-64
conda install numpy pandas requests git
pip install datetime
pip install pygtide
conda install jupyter
python -c "import pygtide; pygtide.test(msg=True)"`
hydrogeoscience commented 7 months ago

The compilation for Windows is an absolute headache. I have now provided wheels for different Python versions which make this easier. Hope this works!