Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Trouble Installing on official Python 3.5 docker image #138

@maslanov

Description

@maslanov

I've tried to install libsass using Dockerfile and official Python 3.5 version. Below is my Dockerfile and error message

FROM python:3.5

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN pip install libsass

Error message

Command "/usr/local/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fkzb_989/libsass/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-22_ucb5g-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-fkzb_989/libsass/
You are using pip version 8.1.0, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install libsass' returned a non-zero code: 1

I then updated pip and installed python-dev in additional to original Docker image settings.

This is new Dockerfile

FROM python:3.5

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN apt-get update
RUN pip install --upgrade pip
RUN pip install libsass

The new error message

Command "/usr/local/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vywwo_sj/libsass/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-a0glg558-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-vywwo_sj/libsass/
ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install libsass' returned a non-zero code: 1

Any help to get this resolved would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions