我想用dart和python建立一个github actions容器。我已经使用了dart操作模板并安装了python。然而,我一直收到一个错误,说
WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executin
编辑的
我正在学习CICD和Docker。到目前为止,我已经成功地使用以下代码创建了一个码头映像:
Dockerfile
# Docker Operating System
FROM python:3-slim-buster
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
#App folder on Slim O
我正在运行一个Django项目与码头。现在,我想在Docker容器中安装一个Python包,并运行以下命令:
docker-compose django run pip install django-extra-views
现在,当我执行docker-compose up时,我会得到一个错误ImportError: No module named 'extra_views'。docker-compose django run pip freeze也没有显示上面的包。
我是不是遗漏了什么?
我正在用Docker制作我的python Django应用程序的简单图像。但在构建容器的末尾,它会抛出下一个警告(我是在Ubuntu 20.04上构建它的): WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead 为什么在我的镜像中安装Python requir