aburrell / apexpy

A Python wrapper for Apex coordinates
MIT License
34 stars 25 forks source link

Question: Having trouble installing apexpy on my Win10 #125

Open bonnietedder opened 1 year ago

bonnietedder commented 1 year ago

Tried many ways to install apexpy but failed anyway

I followed all the instructions trying to get apexpy installed but so far none of the methods worked.

In general, using pip to install apexpy, errors always show up as:

Collecting apexpy Using cached apexpy-2.0.1.tar.gz (328 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output]

Furthermore, I found out the error message could be related to installing mensopy, I put error messages below when applying pip install mensopy

Collecting mesonpy Using cached MesonPy-0.0.1.tar.gz (14 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\lenovo\AppData\Local\Temp\pip-install-qx7wr5pp\mesonpy_ee9de1d9b0344322ba84ab990f40e9c3\setup.py", line 4, in with open('requirements.txt') as f: FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Expectations

Want to find a way getting apexpy installed.

Computer

Additional context

Thank you so much for making this apexpy package.

aburrell commented 1 year ago

Hi @bonnietedder, sorry for the long delay. Windows is not my strong suit, but it looks like you probably don't have a fortran compiler installed (the error message is listing out a bunch of common compilers and it looks like you don't have any of them). Can you check that you have installed:

1) Windows developer tools 2) gcc 3) gfortran

For our continuous integration testing we use the following commands (which should only be tried after making sure you have the windows developer tools. If you don't do that first you have to re-install everything all over again):

choco install ninja mingw
choco install rtools --no-progress

Mingw should get you gcc and gfortran. You can test this by:

gfortran --version

If that works, you're good to try the apexpy install.