I want to install Python, Pip and virtualenv in a Docker container which is Ubuntu, I create the image through Dockerfile:
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get
RUN apt-get python3 -y
RUN apt-get install python3-pip -y
RUN pip install virtualenv
...
When it went here, it came out "/bin/sh: 1: pip: not found", but there's no exception showed in the installation process, is this mean I didn't install pip right? Or should I do anything else before I use pip order?
Then I changed the Dockerfile like this:
...
RUN apt-get python3 -y
RUN apt-get install python3-pip -y
RUN apt-get install python3-virtualenv -y
RUN virtualenv --no-stie-packages -p /path/python3 py3env
...
but it still saying /bin/sh: 1: virtualenv: not found, here is it
I also installed git, git clone order ran correctly, can be used. Where am I wrong, or how should I do?