tianyikillua / medcoupling

Python repackaging of the MEDCoupling library
GNU Lesser General Public License v2.1
4 stars 2 forks source link

cmake executable not found. Set CMAKE_EXE environment or update your path #2

Closed ozgur95 closed 3 years ago

ozgur95 commented 3 years ago

Hello, I am trying to build medcoupling with pip install -U medcoupling command but got the error in the title.

Below is the full error i get:

pip install -U medcoupling Collecting medcouplingNote: you may need to restart the kernel to use updated packages. Using cached medcoupling-9.4.0.post1.tar.gz (4.3 kB) ERROR: Command errored out with exit status 1: command: 'C:\Users\user\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\user\AppData\Local\Temp\pip-wheel-6svmwi0j' cwd: C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\ Complete output (6 lines): C:\Users\user\anaconda3\lib\site-packages\setuptools\dist.py:452: UserWarning: Normalizing '9.4.0r1' to '9.4.0.post1' warnings.warn(tmpl.format(**locals())) running bdist_wheel running build running build_py cmake executable not found. Set CMAKE_EXE environment or update your path

ERROR: Failed building wheel for medcoupling ERROR: Command errored out with exit status 1: command: 'C:\Users\user\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-kugms5dn\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\anaconda3\Include\medcoupling' cwd: C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\ Complete output (6 lines): C:\Users\user\anaconda3\lib\site-packages\setuptools\dist.py:452: UserWarning: Normalizing '9.4.0r1' to '9.4.0.post1' warnings.warn(tmpl.format(**locals())) running install running build running build_py cmake executable not found. Set CMAKE_EXE environment or update your path

ERROR: Command errored out with exit status 1: 'C:\Users\user\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\setup.py'"'"'; file='"'"'C:\Users\user\AppData\Local\Temp\pip-install-k5xw4q57\medcoupling\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-kugms5dn\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\anaconda3\Include\medcoupling' Check the logs for full command output.

Requirement already satisfied, skipping upgrade: numpy in c:\users\user\anaconda3\lib\site-packages (from medcoupling) (1.19.2) Building wheels for collected packages: medcoupling Building wheel for medcoupling (setup.py): started Building wheel for medcoupling (setup.py): finished with status 'error' Running setup.py clean for medcoupling Failed to build medcoupling Installing collected packages: medcoupling Running setup.py install for medcoupling: started Running setup.py install for medcoupling: finished with status 'error'

ozgur95 commented 3 years ago

It's solved with installing cmake.