entos 和 ubuntu 系统都测试,同样问题,docker 已经安装, 执行 docker build --rm -t mining:latest . ,安装到 第26步骤是错误如下:
Step 26/37 : RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
---> Running in f18ef999d351
/bin/sh: 1: pip: not found
The command '/bin/sh -c pip config set global.index-url http://mirrors.aliyun.com/pypi/simple' returned a non-zero code: 127
另外,测试了命令如下:
pip -V 显示: pip 20.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
whereis pip 显示:pip: /usr/bin/pip2.7 /usr/bin/pip
python -V 显示: Python 2.7.5,
echo $PATH 显示: usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
sudo useradd duan -m -d /home/duan -s /bin/bash
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz