"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4fc9f9ef54e2ab250042c55b55a2e3c097858cb7"
Unverified Commit 81cd655c authored by Shaun VanWeelden's avatar Shaun VanWeelden Committed by GitHub
Browse files

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
parent 1a77a1a8
...@@ -54,19 +54,19 @@ pip install transformers ...@@ -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: 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 ```bash
pip install transformers[torch] pip install 'transformers[torch]'
``` ```
🤗 Transformers and TensorFlow 2.0: 🤗 Transformers and TensorFlow 2.0:
```bash ```bash
pip install transformers[tf-cpu] pip install 'transformers[tf-cpu]'
``` ```
🤗 Transformers and Flax: 🤗 Transformers and Flax:
```bash ```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: 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 ...@@ -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. 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.
</Tip> </Tip>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment