1

I am trying to build a docker image.

This is my docker file
FROM python:3.6
RUN apt-get -y update
RUN apt-get install -y gcc libc-dev g++ libffi-dev libxml2 libffi-dev unixodbc-dev default-libmysqlclient-dev
COPY requirements.txt requirements.txt
RUN pip install numpy
RUN pip install -e git+<git repo>
RUN pip install -r requirements.txt

But the RUN pip install -e git+ fails. I tweaked my dns setting in the docker.service file, but still no luck.

1
  • 5
    Fails with what error message? Commented Dec 1, 2018 at 10:45

1 Answer 1

1

The -e flag gives me an error when I try it with a GitHub repo. Perhaps you are running into this issue?

Using requests as an example:

pip install -e git+git://github.com/requests/requests.git

The error I see on my end is:

Could not detect requirement name for 'git+git://github.com/requests/requests.git', please specify one with#egg=your_package_name

To fix it, I added the name of the package that I'm installing:

pip install -e git+git://github.com/requests/requests.git#egg=requests
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.