mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Add pip install wheel
to avoid legacy setup.py install
(#8597)
* Update ci-testing with `pip install wheel` * Update ci-testing.yml * Update dockerfiles
This commit is contained in:
parent
5c45a4b13d
commit
6e86af3de8
4
.github/workflows/ci-testing.yml
vendored
4
.github/workflows/ci-testing.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
# restore-keys: ${{ runner.os }}-Benchmarks-
|
# restore-keys: ${{ runner.os }}-Benchmarks-
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip wheel
|
||||||
pip install -r requirements.txt coremltools openvino-dev tensorflow-cpu --extra-index-url https://download.pytorch.org/whl/cpu
|
pip install -r requirements.txt coremltools openvino-dev tensorflow-cpu --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
python --version
|
python --version
|
||||||
pip --version
|
pip --version
|
||||||
@ -77,7 +77,7 @@ jobs:
|
|||||||
restore-keys: ${{ runner.os }}-${{ matrix.python-version }}-pip-
|
restore-keys: ${{ runner.os }}-${{ matrix.python-version }}-pip-
|
||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip wheel
|
||||||
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
python --version
|
python --version
|
||||||
pip --version
|
pip --version
|
||||||
|
@ -14,7 +14,7 @@ RUN apt update && apt install --no-install-recommends -y zip htop screen libgl1-
|
|||||||
|
|
||||||
# Install pip packages
|
# Install pip packages
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN python -m pip install --upgrade pip
|
RUN python -m pip install --upgrade pip wheel
|
||||||
RUN pip uninstall -y torch torchvision torchtext Pillow
|
RUN pip uninstall -y torch torchvision torchtext Pillow
|
||||||
RUN pip install --no-cache -r requirements.txt albumentations wandb gsutil notebook Pillow>=9.1.0 \
|
RUN pip install --no-cache -r requirements.txt albumentations wandb gsutil notebook Pillow>=9.1.0 \
|
||||||
'opencv-python<4.6.0.66' \
|
'opencv-python<4.6.0.66' \
|
||||||
|
@ -17,7 +17,7 @@ RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc \
|
|||||||
|
|
||||||
# Install pip packages
|
# Install pip packages
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN python3 -m pip install --upgrade pip
|
RUN python3 -m pip install --upgrade pip wheel
|
||||||
RUN pip install --no-cache -r requirements.txt gsutil notebook \
|
RUN pip install --no-cache -r requirements.txt gsutil notebook \
|
||||||
tensorflow-aarch64
|
tensorflow-aarch64
|
||||||
# tensorflowjs \
|
# tensorflowjs \
|
||||||
|
@ -16,7 +16,7 @@ RUN apt install --no-install-recommends -y python3-pip git zip curl htop libgl1-
|
|||||||
|
|
||||||
# Install pip packages
|
# Install pip packages
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN python3 -m pip install --upgrade pip
|
RUN python3 -m pip install --upgrade pip wheel
|
||||||
RUN pip install --no-cache -r requirements.txt albumentations gsutil notebook \
|
RUN pip install --no-cache -r requirements.txt albumentations gsutil notebook \
|
||||||
coremltools onnx onnx-simplifier onnxruntime openvino-dev tensorflow-cpu tensorflowjs \
|
coremltools onnx onnx-simplifier onnxruntime openvino-dev tensorflow-cpu tensorflowjs \
|
||||||
--extra-index-url https://download.pytorch.org/whl/cpu
|
--extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user