Failed in installation " Did you mean : 'extra_compile_args' ?"
Opened this issue · 9 comments
Hello @xuannnnnnn . I am also facing the same issue. I am using windows 11 machine. I have downloaded all the required packages as mentioned in the https://nansat.readthedocs.io/en/latest/source/installation.html.
Where you able to solve this problem ? If so, can you please advise me how to install nansat properly.
Also @an-ivanov I saw your pull request and understand some modification is made to the setup.py file. Will the problem get solved by cloning your version ?
I have not merged the fixes into my master fork.
You can fork from this repo and merge my b1 and b2 branches into it.
Then use your own repo with the fixes.
Also @an-ivanov I saw your pull request and understand some modification is made to the setup.py file. Will the problem get solved by cloning your version ?
I have not merged the fixes into my master fork. You can fork from this repo and merge my b1 and b2 branches into it. Then use your own repo with the fixes.
Also @an-ivanov I saw your pull request and understand some modification is made to the setup.py file. Will the problem get solved by cloning your version ?
@an-ivanov Thanks for your advise and help. But I have one question, I am a noob in using github. I am not able to understand exactly what you are trying to say. Can you please tell me what branch I must fork and what branches should I merge ? After doing that I can clone that resultant repo and try installing the package right ? Thanks again for your help.
I'm afraid It will be too difficult for you then.
Just use:
pip install https://github.com/an-ivanov/nansat/archive/master.zip
Hello @an-ivanov. I tried your method. but now i am facing a new error. This is want I am getting now. Can you please advise what must be done ?
@Venkatakrishnan-M you need a C compiler to compile pixel functions.
Since you are on Windows, it looks like you need to install Microsoft C++ build tools, you even have the link in the message you posted!
building 'nansat._pixfun_py3' extension
creating build\temp.win-amd64-cpython-39
creating build\temp.win-amd64-cpython-39\Release
creating build\temp.win-amd64-cpython-39\Release\nansat
creating build\temp.win-amd64-cpython-39\Release\nansat\pixelfunctions
C:\software\vs2022\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\software\Anaconda3\envs\nansat3.9\Library\include -IC:\software\Anaconda3\envs\nansat3.9\include -IC:\software\Anaconda3\envs\nansat3.9\Include -IC:\software\vs2022\VC\Tools\MSVC\14.38.33130\include -IC:\software\vs2022\VC\Auxiliary\VS\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcnansat/pixelfunctions/_pixfun_py3.c /Fobuild\temp.win-amd64-cpython-39\Release\nansat/pixelfunctions/_pixfun_py3.obj -nologo -DLL
_pixfun_py3.c
nansat/pixelfunctions/_pixfun_py3.c(2): fatal error C1083: 无法打开包括文件: “gdal.h”: No such file or directory error: command 'C:\software\vs2022\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for nansat
Running setup.py clean for nansat
Failed to build nansat
ERROR: Could not build wheels for nansat, which is required to install pyproject.toml-based projects