Explicitly specify pip3 to avoid pulling python2 dependencies

This commit is contained in:
Alex Thiel 2021-09-20 12:12:08 -07:00
parent 0ccff89034
commit e48902c85c

View file

@ -29,14 +29,14 @@ RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt
python-rosinstall-generator \
python-wstool \
build-essential \
python-pip && \
python3-pip && \
# Project-specific build dependencies
rosdep install -r -y -i --from-paths . && \
rm -rf /var/lib/apt/lists/*
# Install python dependencies
ARG PYMYCOBOT_VERSION
RUN pip install "pymycobot $PYMYCOBOT_VERSION" --user
RUN pip3 install "pymycobot $PYMYCOBOT_VERSION" --user
# Build the project
WORKDIR /catkin_ws