You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,7 @@ When you're ready to contribute code to address an open issue, please follow the
79
79
Once your virtual environment is activated, you can install your local clone in "editable mode" with
80
80
81
81
pip install -U pip setuptools wheel
82
-
pip install -e .
83
-
pip install -r dev-requirements.txt
82
+
pip install -e .[dev,all]
84
83
85
84
The "editable mode" comes from the `-e` argument to `pip`, and essential just creates a symbolic link from the site-packages directory of your virtual environment to the source code in your local clone. That way any changes you make will be immediately reflected in your virtual environment.
Copy file name to clipboardExpand all lines: README.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,8 @@ It's recommended that you install the PyTorch ecosystem **before** installing Al
197
197
198
198
After that, just run `pip install allennlp`.
199
199
200
+
201
+
200
202
> ⚠️ If you're using Python 3.7 or greater, you should ensure that you don't have the PyPI version of `dataclasses` installed after running the above command, as this could cause issues on certain platforms. You can quickly check this by running `pip freeze | grep dataclasses`. If you see something like `dataclasses=0.6` in the output, then just run `pip uninstall -y dataclasses`.
201
203
202
204
If you need pointers on setting up an appropriate Python environment or would like to install AllenNLP using a different method, see below.
@@ -229,6 +231,13 @@ Installing the library and dependencies is simple using `pip`.
229
231
pip install allennlp
230
232
```
231
233
234
+
To install the optional dependencies, such as `checklist`, run
235
+
236
+
```bash
237
+
pip install allennlp[checklist]
238
+
```
239
+
Or you can just install all optional dependencies with `pip install allennlp[all]`.
240
+
232
241
*Looking for bleeding edge features? You can install nightly releases directly from [pypi](https://pypi.org/project/allennlp/#history)*
233
242
234
243
AllenNLP installs a script when you install the python package, so you can run allennlp commands just by typing `allennlp` into a terminal. For example, you can now test your installation with `allennlp test-install`.
@@ -300,8 +309,7 @@ Create a Python 3.7 or 3.8 virtual environment, and install AllenNLP in `editabl
300
309
301
310
```bash
302
311
pip install -U pip setuptools wheel
303
-
pip install --editable .
304
-
pip install -r dev-requirements.txt
312
+
pip install --editable .[dev,all]
305
313
```
306
314
307
315
This will make `allennlp` available on your system but it will use the sources from the local clone
0 commit comments