"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4821ea5aeb12050fb6951c133fee337f185e9f23"
Commit a8d34e53 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Remove [--editable] in install instructions.

Use -e only in docs targeted at contributors.

If a user copy-pastes  command line with [--editable], they will hit
an error. If they don't know the --editable option, we're giving them
a choice to make before they can move forwards, but this isn't a choice
they need to make right now.
parent 8a688182
...@@ -124,6 +124,10 @@ Follow these steps to start contributing: ...@@ -124,6 +124,10 @@ Follow these steps to start contributing:
$ pip install -e .[dev] $ pip install -e .[dev]
``` ```
(If transformers was already installed in the virtual environment, remove
it with `pip uninstall transformers` before reinstalling it in editable
mode with the `-e` flag.)
Right now, we need an unreleased version of `isort` to avoid a Right now, we need an unreleased version of `isort` to avoid a
[bug](https://github.com/timothycrosley/isort/pull/1000): [bug](https://github.com/timothycrosley/isort/pull/1000):
......
...@@ -93,14 +93,14 @@ When TensorFlow 2.0 and/or PyTorch has been installed, you can install from sour ...@@ -93,14 +93,14 @@ When TensorFlow 2.0 and/or PyTorch has been installed, you can install from sour
```bash ```bash
git clone https://github.com/huggingface/transformers git clone https://github.com/huggingface/transformers
cd transformers cd transformers
pip install [--editable] . pip install .
``` ```
When you update the repository, you should upgrade the transformers installation and its dependencies as follows: When you update the repository, you should upgrade the transformers installation and its dependencies as follows:
```bash ```bash
git pull git pull
pip install --upgrade [--editable] . pip install --upgrade .
``` ```
### Run the examples ### Run the examples
......
...@@ -4,7 +4,7 @@ To generate the documentation, you first have to build it. Several packages are ...@@ -4,7 +4,7 @@ To generate the documentation, you first have to build it. Several packages are
you can install them with the following command, at the root of the code repository: you can install them with the following command, at the root of the code repository:
```bash ```bash
pip install .[docs] pip install -e .[docs]
``` ```
## Packages installed ## Packages installed
......
...@@ -17,7 +17,7 @@ To install from source, clone the repository and install with: ...@@ -17,7 +17,7 @@ To install from source, clone the repository and install with:
``` bash ``` bash
git clone https://github.com/huggingface/transformers.git git clone https://github.com/huggingface/transformers.git
cd transformers cd transformers
pip install [--editable] . pip install .
``` ```
## Tests ## Tests
......
...@@ -10,7 +10,7 @@ Execute the following steps in a new virtual environment: ...@@ -10,7 +10,7 @@ Execute the following steps in a new virtual environment:
```bash ```bash
git clone https://github.com/huggingface/transformers git clone https://github.com/huggingface/transformers
cd transformers cd transformers
pip install [--editable] . pip install .
pip install -r ./examples/requirements.txt pip install -r ./examples/requirements.txt
``` ```
......
...@@ -15,7 +15,7 @@ Please check out the repo under uber-research for more information: https://gith ...@@ -15,7 +15,7 @@ Please check out the repo under uber-research for more information: https://gith
```bash ```bash
git clone https://github.com/huggingface/transformers && cd transformers git clone https://github.com/huggingface/transformers && cd transformers
pip install [--editable] . pip install .
pip install nltk torchtext # additional requirements. pip install nltk torchtext # additional requirements.
cd examples/pplm cd examples/pplm
``` ```
......
...@@ -10,7 +10,7 @@ The model is loaded with the pre-trained weights for the abstractive summarizati ...@@ -10,7 +10,7 @@ The model is loaded with the pre-trained weights for the abstractive summarizati
``` ```
git clone https://github.com/huggingface/transformers && cd transformers git clone https://github.com/huggingface/transformers && cd transformers
pip install [--editable] . pip install .
pip install nltk py-rouge pip install nltk py-rouge
cd examples/summarization cd examples/summarization
``` ```
......
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