nansencenter / nansat

Scientist friendly Python toolbox for processing 2D satellite Earth observation data.
http://nansat.readthedocs.io
GNU General Public License v3.0
181 stars 66 forks source link

windows nansat1.5.3 #530

Open LooperzZ opened 1 year ago

LooperzZ commented 1 year ago

nansat 1.5.3 cannot be installed on Windows platform, can it solve the following problem? Or can you provide the installation environment specific to the Windows platform? The guidelines in the installation instructions in git have expired and cannot be installed successfully.

LooperzZ commented 1 year ago

Follow the manual: conda create -y -n py3nansat gdal numpy pillow netcdf4 scipy conda activate py3nansat pip install nansat

The following error occurs: Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [9 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\UAV\AppData\Local\Temp\pip-install-xvpn7ulw\nansat_50f7dc8ff88e4273bf70ab605f4fdeb1\setup.py", line 240, in run_setup(skip_compile) File "C:\Users\UAV\AppData\Local\Temp\pip-install-xvpn7ulw\nansat_50f7dc8ff88e4273bf70ab605f4fdeb1\setup.py", line 201, in run_setup extra_link_args=extra_link_args) ^^^^^^^^^^^^^^^ NameError: name 'extra_link_args' is not defined. Did you mean: 'extra_compile_args'? [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.

pkopparla commented 1 year ago

I have the same problem!

XiaosongZhang commented 1 year ago

I have the same problem, I've installed it in PyCharm, in conda and in VisualStudio, and I haven't found a solution yet!

LiMingci commented 1 year ago

Maybe you are using a higher version of python. We recommend 3.7 or 3.8, you can try it.

XiaosongZhang commented 1 year ago

Thank you for your prompt. My Python version is 3.9. I have tried version 3.6 but still have the same problem. I will continue to try version 3.7 or 3.8.

Mingci Li @.***> 于2023年8月21日周一 17:24写道:

Maybe you are using a higher version of python. We recommend 3.7 or 3.8, you can try it.

— Reply to this email directly, view it on GitHub https://github.com/nansencenter/nansat/issues/530#issuecomment-1685968936, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5K5J2NU3TCRVNDCVNLPLUTXWMSOHANCNFSM6AAAAAAZAKJPKI . You are receiving this because you commented.Message ID: @.***>

xuannnnnnn commented 7 months ago

Thank you for your prompt. My Python version is 3.9. I have tried version 3.6 but still have the same problem. I will continue to try version 3.7 or 3.8. Mingci Li @.> 于2023年8月21日周一 17:24写道: Maybe you are using a higher version of python. We recommend 3.7 or 3.8, you can try it. — Reply to this email directly, view it on GitHub <#530 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5K5J2NU3TCRVNDCVNLPLUTXWMSOHANCNFSM6AAAAAAZAKJPKI . You are receiving this because you commented.Message ID: @.>

have you successfully install nansat in Windows? I am facing the same problem now

aperrin66 commented 4 months ago

This issue has been fixed in nansat version 1.6.2. Can you upgrade(pip install --upgrade nansat), try again and let me know if it solves your problem?