Cmake not found python

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake can not find python3 (missing: Development Development.Module Development.Embed) (found version «3.8.9») #23537

cmake can not find python3 (missing: Development Development.Module Development.Embed) (found version «3.8.9») #23537

requires:more-information This Issue requires more information to solve requires:repro The issue is not currently repro-able

Comments

Please create a discussion in https://github.com/microsoft/vcpkg/discussions/new instead.
Hi, I want to install openeb which so I got the following code:
PS C:\Users\masiy\openeb\build> cmake .. -A x64 -DCMAKE_TOOLCHAIN_FILE=C:\Users\masiy\openeb\cmake\toolchains\vcpkg.cmake -DVCPKG_DIRECTORY=C:\src\vcpkg -DBUILD_TESTING=OFF

But I terminal reports an issue:
— Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
— Building METAVISION_SDK_MODULES_OPEN modules : base;core;driver;ui
— Building METAVISION_SDK_MODULES_PROFESSIONAL modules : analytics;calibration;cv;ml;3dview;cv3d
CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Development Development.Module
Development.Embed) (found version «3.8.9»)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindPython/Support.cmake:2993 (find_package_handle_standard_args)
cmake/Modules/FindPython3.cmake:391 (include)
C:/Users/masiy/vcpkg/installed/x64-windows/share/python3/vcpkg-cmake-wrapper.cmake:67 (_find_package)
C:/Users/masiy/vcpkg/scripts/buildsystems/vcpkg.cmake:754 (include)
cmake/custom_functions/python3.cmake:63 (find_package)
CMakeLists.txt:211 (include)

Читайте также:  Php instance of example

— Configuring incomplete, errors occurred!
See also «C:/Users/masiy/openeb/build/CMakeFiles/CMakeOutput.log».
See also «C:/Users/masiy/openeb/build/CMakeFiles/CMakeError.log».

Could someone tells me how to solve this problem? Thanks very much.

The text was updated successfully, but these errors were encountered:

-DCMAKE_TOOLCHAIN_FILE=C:\Users\masiy\openeb\cmake\toolchains\vcpkg.cmake
This looks wrong

@MariaSabrinaMa Is still work for this issue?

We haven’t been able to repro this; if more information comes up, or this issue appears again, please reopen.

Hi, the issue is still not solved.

@MariaSabrinaMa Did you run the command .\vcpkg.exe integrate install ?

Yes I did and it did not work. I am pretty sure I have multiple versions of python on my PC. I found the official document from prophesse (the software I want to install) stating that:
In that case, we can see that cmake found some version of the Python interpreter, but it then fails because it does not find other required components from this specific version. The solution is to specify to cmake which version of Python to use with the option -DPython3_EXECUTABLE=.
So I added that but I got a new issue:
PS C:\Users\masiy\openeb\build> cmake .. -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=/usr/bin/python3.8
CMake Error: The source directory «C:/Users/masiy/openeb/build/.8» does not exist.
Specify —help for usage, or press the help button on the CMake GUI.
PS C:\Users\masiy\openeb\build> cmake .. -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=C:\Users\masiy\AppData\Local\Programs\Python\Python38
— Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
— Building METAVISION_SDK_MODULES_OPEN modules : base;core;driver;ui
— Building METAVISION_SDK_MODULES_PROFESSIONAL modules : analytics;calibration;cv;ml;3dview;cv3d
CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Interpreter Development Development.Module
Development.Embed) (found version «3.8»)

 Reason given by package: Interpreter: Cannot run the interpreter "C:/Users/masiy/AppData/Local/Programs/Python/Python38" 

Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindPython/Support.cmake:2993 (find_package_handle_standard_args)
cmake/Modules/FindPython3.cmake:391 (include)
C:/Users/masiy/vcpkg/installed/x64-windows/share/python3/vcpkg-cmake-wrapper.cmake:67 (_find_package)
C:/Users/masiy/vcpkg/scripts/buildsystems/vcpkg.cmake:754 (include)
cmake/custom_functions/python3.cmake:63 (find_package)
CMakeLists.txt:211 (include)

Источник

CMake could NOT find Python

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find Python (missing: Python_EXECUTABLE Python_LIBRARIES Python_INCLUDE_DIRS Interpreter Development) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.16/Modules/FindPython.cmake:347 (find_package_handle_standard_args) cmake/modules/SearchRootCoreDeps.cmake:70 (find_package) CMakeLists.txt:120 (include) 
The following packages have unmet dependencies: python-dev-is-python2 : Depends: python-is-python2 (= 2.7.17-4) but it is not going to be installed Depends: python2-dev but it is not going to be installed root-system : Depends: root-system-bin but it is not installable Depends: libroot-core-dev but it is not installable Recommends: libroot-graf3d-gl-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-io-xmlparser-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-mathmore-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-unuran-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-misc-memstat-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-misc-table-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-net-bonjour-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-net-ldap-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-graf2d-asimage (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-gui-qt (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-graf2d-qt (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-math-fftw3 (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-math-minuit2 (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-net-krb5 (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-sql-odbc (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-geom-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-graf2d-gpad-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-graf2d-graf-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-graf2d-postscript-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-graf3d-eve-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-graf3d-g3d-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-gui-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-gui-ged-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-hist-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-hist-spectrum-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-html-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-io-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-foam-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-genvector-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-mathcore-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-matrix-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-minuit-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-mlp-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-physics-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-quadp-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-smatrix-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-math-splot-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-misc-minicern-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-montecarlo-eg-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-montecarlo-vmc-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-net-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-net-auth-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-proof-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-proof-proofplayer-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-tmva-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-tree-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: libroot-tree-treeplayer-dev (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-geom-geombuilder (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-geom-geompainter (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-graf2d-x11 (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-graf3d-x3d (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-gui-fitpanel (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-gui-guibuilder (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-gui-sessionviewer (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-hist-hbook (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-hist-histpainter (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-hist-spectrumpainter (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-io-sql (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-io-xml (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-math-fumili (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-plugin-tree-treeviewer (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-system-proofd (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-system-rootd (>= 5.34.30-0ubuntu8) but it is not installable Recommends: root-system-doc (>= 5.34.30-0ubuntu8) but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 

Источник

Оцените статью