Move catkin_ws and ROS_catkin_ws to your home directory
If you have installed ROS before then run followings:
sudo apt-get remove --autoremove ros-*
sudo apt update
sudo rm -rf /etc/ros/
sudo apt install -y python3 python3-dev python3-pip build-essential
sudo apt purge -y python2.7-minimal
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo ln -s /usr/bin/pip3 /usr/bin/pip
sudo -H pip3 install --no-cache-dir --ignore-installed rosdep rospkg rosinstall_generator rosinstall wstool vcstools catkin_tools catkin_pkg
sudo rosdep init && rosdep update
cd ~/ROS_catkin_ws
export ROS_PYTHON_VERSION=3
Install wxpython from this site https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ If you are Ubuntu-18.04 then you can run this below;
pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
sudo chmod +x catkin_make_isolated
./catkin_make_isolated
export PYTHONPATH=/usr/lib/python3/dist-packages
source ~/ros_catkin_ws/install_isolated/setup.bash
#install missing python3 packages
pip3 install pyOpenSSL twisted autobahn bson hyperopt hyperas
pip3 uninstall bson
pip3 install pymongo
sudo -H pip3 install service_identity
#Build catkin_ws
cd ~/catkin_ws
chmod +x catkin_make
./catkin_make
source ~/catkin_ws/devel/setup.bash
I recommend to add
source ~/ros_catkin_ws/install_isolated/setup.bash
and
source ~/catkin_ws/devel/setup.bash
to your ~/.bashrc