Linked Questions

4 votes
2 answers
20k views

I am trying to setup a python virtual environment on a docker image running a docker build The terminal output is ok when I run docker build .. but when I login into my container, no packages are ...
blondelg's user avatar
  • 996
1 vote
1 answer
531 views

I am trying to get a docker image with Ubuntu, Python and Weasyprint to work. I think the error for me is that requirements.txt is installed in a Python venv. When I try to run main.py it gives me a ...
Europa's user avatar
  • 1,422
0 votes
0 answers
349 views

Do we need virtual environment if we are using docker, in django project?
aditya sharma's user avatar
0 votes
0 answers
131 views

I'm attempting to deploy a flask web app using a docker container. I'm dockerizing the app because I have a package (RDKit) which cannot be pip installed and must be done using conda. When using ...
Gurkamal Deol's user avatar
0 votes
0 answers
37 views

Below is my docker file that i used to build the image, which in turn will be used as dynamic docker agent in jenkins. If a new job is triggered in jenkins, the containers are up and but the ...
Chandrasekar's user avatar
0 votes
0 answers
36 views

I am editing the question because you did not understand the problem. And the problem still exists. How do I install into a Docker container via pip3, modules that are not installed on the system. ...
Bodger's user avatar
  • 1,362
182 votes
12 answers
616k views

Command: pip install -r requirements.txt Output: error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-...
iReXes 's user avatar
  • 1,953
31 votes
3 answers
19k views

You can build a container with Dockerfile in a few seconds. Then why do people need to install a virtual enviroment inside the docker container? It's like a "virtual machine" in a virtual ...
Liao Zhuodi's user avatar
  • 3,303
5 votes
3 answers
16k views

I am trying to build an image using dockerfile. The commands in the dockerfile looks something like these: FROM ubuntu:16.04 : : RUN pip3 install virtualenvwrapper RUN echo '# Python virtual ...
scipsycho's user avatar
  • 607
3 votes
1 answer
6k views

I am trying to create a Docker image for my flask application, shown below: # syntax=docker/dockerfile:1 FROM python:3.9.5-slim-buster as build RUN python3 -m venv /app/venv COPY . /app RUN /app/venv/...
gorilla_glue's user avatar
1 vote
3 answers
2k views

I created a docker python image on top of alpine the problem is that when I want to start a django app it can not find django and it is right bcz when I type pip list, it does not have django and ...
django developer's user avatar
1 vote
2 answers
2k views

Is it possible to use the same shell in all RUN commands when building a docker image? As opposed to each RUN command running on its own shell. Use case: at some point, I need to source some file ...
user1011113's user avatar
  • 1,435
0 votes
1 answer
2k views

I have a python 3.6 application that I have installed locally using pip install . and a setup.py file. I've tested it locally, and the next step is to move it to a docker container. I'm using the ...
Boris's user avatar
  • 906
2 votes
0 answers
811 views

I am trying to create a docker container to always run mypy in the same environment. The library I want to run mypy on has multiple dependencies, so I have to install those first and have access to ...
Yes's user avatar
  • 453
0 votes
2 answers
439 views

I am facing an issue with running my Python code in a Docker container. The problem is that I have a slow internet connection on my server, which causes the pip install -r requirement.txt command to ...
Mostafa Najmi's user avatar

15 30 50 per page