Can't install pip packages inside a docker container with Ubuntu

前端 未结 16 2376
抹茶落季
抹茶落季 2020-11-30 19:07

I\'m following the fig guide to using docker with a python application, but when docker gets up to the command

RUN pip install -r requirements.txt

16条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 19:34

    I had same problem.The cause of error is proxy.

    So, I edit Dockerfile following

    RUN pip install -r /app/requirements.txt --proxy=http://user:pass@addr:port
    

提交回复
热议问题