Use double quotes for `pip install` options (#4110)

Co-authored-by: Kayzwer <68285002+Kayzwer@users.noreply.github.com>
single_channel
Glenn Jocher 1 year ago committed by GitHub
parent c3c27b019a
commit 6852b76611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -107,9 +107,9 @@ jobs:
run: | run: |
python -m pip install --upgrade pip wheel python -m pip install --upgrade pip wheel
if [ "${{ matrix.os }}" == "macos-latest" ]; then if [ "${{ matrix.os }}" == "macos-latest" ]; then
pip install -e '.[export]' --extra-index-url https://download.pytorch.org/whl/cpu pip install -e ".[export]" --extra-index-url https://download.pytorch.org/whl/cpu
else else
pip install -e '.[export]' --extra-index-url https://download.pytorch.org/whl/cpu pip install -e ".[export]" --extra-index-url https://download.pytorch.org/whl/cpu
fi fi
yolo export format=tflite imgsz=32 yolo export format=tflite imgsz=32
- name: Check environment - name: Check environment
@ -165,9 +165,9 @@ jobs:
run: | # CoreML must be installed before export due to protobuf error from AutoInstall run: | # CoreML must be installed before export due to protobuf error from AutoInstall
python -m pip install --upgrade pip wheel python -m pip install --upgrade pip wheel
if [ "${{ matrix.torch }}" == "1.8.0" ]; then if [ "${{ matrix.torch }}" == "1.8.0" ]; then
pip install -e . torch==1.8.0 torchvision==0.9.0 pytest 'coremltools>=6.0,<=6.2' --extra-index-url https://download.pytorch.org/whl/cpu pip install -e . torch==1.8.0 torchvision==0.9.0 pytest "coremltools>=6.0,<=6.2" --extra-index-url https://download.pytorch.org/whl/cpu
else else
pip install -e . pytest 'coremltools>=6.0,<=6.2' --extra-index-url https://download.pytorch.org/whl/cpu pip install -e . pytest "coremltools>=6.0,<=6.2" --extra-index-url https://download.pytorch.org/whl/cpu
fi fi
- name: Check environment - name: Check environment
run: | run: |

@ -33,7 +33,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip wheel build twine python -m pip install --upgrade pip wheel build twine
pip install -e '.[dev]' --extra-index-url https://download.pytorch.org/whl/cpu pip install -e ".[dev]" --extra-index-url https://download.pytorch.org/whl/cpu
- name: Check PyPI version - name: Check PyPI version
shell: python shell: python
run: | run: |

@ -30,7 +30,7 @@ ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /u
# Install pip packages # Install pip packages
RUN python3 -m pip install --upgrade pip wheel RUN python3 -m pip install --upgrade pip wheel
RUN pip install --no-cache -e '.[export]' thop albumentations comet pycocotools RUN pip install --no-cache -e ".[export]" thop albumentations comet pycocotools
# Run exports to AutoInstall packages # Run exports to AutoInstall packages
RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32 RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32

@ -28,7 +28,7 @@ RUN rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
# Install pip packages # Install pip packages
RUN python3 -m pip install --upgrade pip wheel RUN python3 -m pip install --upgrade pip wheel
RUN pip install --no-cache -e '.[export]' thop --extra-index-url https://download.pytorch.org/whl/cpu RUN pip install --no-cache -e ".[export]" thop --extra-index-url https://download.pytorch.org/whl/cpu
# Run exports to AutoInstall packages # Run exports to AutoInstall packages
RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32 RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32

@ -28,7 +28,7 @@ ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt /u
# Install pip packages # Install pip packages
RUN python3 -m pip install --upgrade pip wheel RUN python3 -m pip install --upgrade pip wheel
RUN pip install --no-cache -e '.[export]' thop --extra-index-url https://download.pytorch.org/whl/cpu RUN pip install --no-cache -e ".[export]" thop --extra-index-url https://download.pytorch.org/whl/cpu
# Run exports to AutoInstall packages # Run exports to AutoInstall packages
RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32 RUN yolo export model=tmp/yolov8n.pt format=edgetpu imgsz=32

@ -27,7 +27,7 @@ cd ultralytics
3. Install the package in developer mode using pip: 3. Install the package in developer mode using pip:
```bash ```bash
pip install -e '.[dev]' pip install -e ".[dev]"
``` ```
This will install the ultralytics package and its dependencies in developer mode, allowing you to make changes to the This will install the ultralytics package and its dependencies in developer mode, allowing you to make changes to the

@ -30,7 +30,7 @@ To install the required packages, run:
```bash ```bash
# Install and update Ultralytics and Ray Tune packages # Install and update Ultralytics and Ray Tune packages
pip install -U ultralytics 'ray[tune]' pip install -U ultralytics "ray[tune]"
# Optionally install W&B for logging # Optionally install W&B for logging
pip install wandb pip install wandb

@ -153,11 +153,6 @@ keywords: Ultralytics, Utils, utilitarian functions, colorstr, yaml_save, set_lo
### ::: ultralytics.utils.set_sentry ### ::: ultralytics.utils.set_sentry
<br><br> <br><br>
## update_dict_recursive
---
### ::: ultralytics.utils.update_dict_recursive
<br><br>
## deprecation_warn ## deprecation_warn
--- ---
### ::: ultralytics.utils.deprecation_warn ### ::: ultralytics.utils.deprecation_warn

@ -67,7 +67,7 @@ We will walk through an example benchmarking and deploying a sparse version of Y
Run the following to install DeepSparse. We recommend you use a virtual environment with Python. Run the following to install DeepSparse. We recommend you use a virtual environment with Python.
```bash ```bash
pip install deepsparse[server,yolo,onnxruntime] pip install "deepsparse[server,yolo,onnxruntime]"
``` ```
### Collect an ONNX File ### Collect an ONNX File

@ -46,7 +46,7 @@ setup(
'mkdocs-material', 'mkdocs-material',
'mkdocstrings[python]', 'mkdocstrings[python]',
'mkdocs-redirects', # for 301 redirects 'mkdocs-redirects', # for 301 redirects
'mkdocs-ultralytics-plugin>=0.0.22', # for meta descriptions and images, dates and authors 'mkdocs-ultralytics-plugin>=0.0.24', # for meta descriptions and images, dates and authors
], ],
'export': [ 'export': [
'coremltools>=6.0,<=6.2', 'coremltools>=6.0,<=6.2',

@ -19,7 +19,7 @@ PaddlePaddle | `paddle` | yolov8n_paddle_model/
ncnn | `ncnn` | yolov8n_ncnn_model/ ncnn | `ncnn` | yolov8n_ncnn_model/
Requirements: Requirements:
$ pip install ultralytics[export] $ pip install "ultralytics[export]"
Python: Python:
from ultralytics import YOLO from ultralytics import YOLO

@ -35,7 +35,7 @@ def run_ray_tune(model,
from ray.air.integrations.wandb import WandbLoggerCallback from ray.air.integrations.wandb import WandbLoggerCallback
from ray.tune.schedulers import ASHAScheduler from ray.tune.schedulers import ASHAScheduler
except ImportError: except ImportError:
raise ModuleNotFoundError("Tuning hyperparameters requires Ray Tune. Install with: pip install 'ray[tune]'") raise ModuleNotFoundError('Tuning hyperparameters requires Ray Tune. Install with: pip install "ray[tune]"')
try: try:
import wandb import wandb

Loading…
Cancel
Save