From 81cd655cabda42147ec6205afafb5a90abc5ada8 Mon Sep 17 00:00:00 2001 From: Shaun VanWeelden Date: Thu, 9 Mar 2023 08:43:49 -0400 Subject: [PATCH] Docs Improvement - In ZSH, not using ' ' around pip install fails, fix it (#22045) In ZSH, not using ' ' around pip install fails Running ``` pip install transformers[torch] ``` in the default ZSH terminal will fail with the error `zsh: no matches found: transformers[torch]` The solution is to wrap the installation path in ' ' like ``` pip install 'transformers[torch]' ``` Relevant StackOverflow: https://stackoverflow.com/questions/30539798/zsh-no-matches-found-requestssecurity --- docs/source/en/installation.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/en/installation.mdx b/docs/source/en/installation.mdx index 4ff4e04436..ba41ed6ea3 100644 --- a/docs/source/en/installation.mdx +++ b/docs/source/en/installation.mdx @@ -54,19 +54,19 @@ pip install transformers For CPU-support only, you can conveniently install 🤗 Transformers and a deep learning library in one line. For example, install 🤗 Transformers and PyTorch with: ```bash -pip install transformers[torch] +pip install 'transformers[torch]' ``` 🤗 Transformers and TensorFlow 2.0: ```bash -pip install transformers[tf-cpu] +pip install 'transformers[tf-cpu]' ``` 🤗 Transformers and Flax: ```bash -pip install transformers[flax] +pip install 'transformers[flax]' ``` Finally, check if 🤗 Transformers has been properly installed by running the following command. It will download a pretrained model: @@ -237,4 +237,4 @@ Once your file is downloaded and locally cached, specify it's local path to load See the [How to download files from the Hub](https://huggingface.co/docs/hub/how-to-downstream) section for more details on downloading files stored on the Hub. - \ No newline at end of file +