I can't build my ROS packages with Python3 virtual environment.
Hello, I'm using ROS kinetic with Ubuntu 16.04.
Actually I'm trying to create the environment for Reinforcement Learning, and I'd like to use openai_ros
and gym
module.
These modules are not compatible with Python 2 which is basic of ROS packages, as far as I know, unfortunately, so I created virtual python3 workspace with virtualenv
.
To make full use of these, I also installed the necessary packages and compiled with,
$ catkin_make -DPYTHON_EXECUTABLE:FILEPATH=/home/user/python3_ws/py3venv/bin/python
But the error has occurred,
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2" (found /home/user/python3_ws/py3venv/bin/python)
Just so you know, the python file of /home/user/python3_ws/py3venv/bin/python
is not readable at least.
I really do not have any ideas about how to resolve it, because I've never seen this kinds of errors.
If anyone who can troubleshoot this, would you please give me a helpful advice?
Thanks in advance :)