Skip to content

missing "" in pip installation #152

@giladxw

Description

@giladxw

I used the image public.ecr.aws/neuron/pytorch-inference-neuronx:2.7.0-neuronx-py310-sdk2.25.0-ubuntu22.04 and found out unintentional file:

root@867726e0d13f:/# head /'=4.8.1.78'
Collecting opencv-python
Downloading opencv_python-4.12.0.88-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (19 kB)
Collecting numpy<1.24,>1.21
Downloading numpy-1.23.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.3 kB)
Collecting scipy>=1.8.0
Downloading scipy-1.15.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting six
Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting pillow>=10.0.1
Downloading pillow-11.3.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (9.0 kB)

this is due to the line:

RUN ${PIP} install --no-cache-dir -U \
    opencv-python>=4.8.1.78 \
    ...

that should be:

RUN ${PIP} install --no-cache-dir -U \
    "opencv-python>=4.8.1.78" \
    ...

and it looks like it repeats in all of pytorch/inference versions of dockerfile...

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