1. 在生成镜像时,安装指定python包时报错

> RUN pip install -i https://doubanio.com/simple/ -r requirement.txt
ERROR: Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/usr/local/python3/lib/python3.6/site-packages/certifi-2018.11.29.dist-info/'

解决方案
发现还是权限问题,故需加入参数--user解决
RUN pip install --user -i https://doubanio.com/simple/ -r requirement.txt

相关文章:

  • 2022-01-21
  • 2021-04-06
  • 2021-09-26
  • 2021-09-30
  • 2021-06-04
  • 2021-05-13
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2021-12-06
  • 2021-06-29
  • 2021-11-25
相关资源
相似解决方案