Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3"

asked 2021-12-20 04:06:28 -0500

Dayne gravatar image

updated 2021-12-20 06:57:32 -0500

osilva gravatar image

I am quite new to ROS2 and I am trying to build a package with "colcon build --packages-select". I am running ROS2 dashing on Windows through "x64 Native Tools Command Prompt for VS 2017".

I get a "CMake Error" when trying build the package:

"CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs"

Followed by: "Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3" (found C:/Users/uie56854/AppData/Local/Microsoft/WindowsApps/python3.exe)..."

I did find a similar issue and solution in the link below yet it is for ROS1: https://github.com/ms-iot/ROSOnWindow...

Any advice would be greatly appreciated. Thank you in advance.

edit retag flag offensive close merge delete

Comments

This post seems similar to your problem. I think you should choose the newer LTS ROS2 version, there is ROS 2 Foxy for Windows 2 - some of the installing prerequisites could help you with the setup.

ljaniec gravatar image ljaniec  ( 2021-12-20 05:31:55 -0500 )edit