mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
19a5ef1c58
* Fix venv command examples The documentation refers to `venv`, which is native to Python3. However, the command examples are as if they were still `virtualenv`, which is a package independent of `venv`: - It doesn't need to be installed via `pip`. In fact `pip install venv` would return an error. - The correct way to invoke `venv` is `python3 -m venv`, not `venv`, which would return command not found. See https://docs.python.org/3/library/venv.html I suspect the documentation simply replaced all occurrences of `virtualenv` with `venv`. However they are different modules and are used differently. * Update comment [ci skip]
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
//- 💫 DOCS > USAGE > INSTALL > QUICKSTART
|
|
|
|
- QUICKSTART[QUICKSTART.length - 1].options = Object.keys(MODELS).map(m => ({ id: m, title: LANGUAGES[m] }))
|
|
|
|
+quickstart(QUICKSTART, "Quickstart")
|
|
+qs({config: 'venv', python: 2}) python -m pip install -U virtualenv
|
|
+qs({config: 'venv', python: 3}) python -m pip install -U venv
|
|
+qs({config: 'venv', python: 2}) virtualenv .env
|
|
+qs({config: 'venv', python: 3}) python -m venv .env
|
|
+qs({config: 'venv', os: 'mac'}) source .env/bin/activate
|
|
+qs({config: 'venv', os: 'linux'}) source .env/bin/activate
|
|
+qs({config: 'venv', os: 'windows'}) .env\Scripts\activate
|
|
|
|
+qs({package: 'pip'}) pip install -U spacy
|
|
+qs({package: 'conda'}) conda install -c conda-forge spacy
|
|
|
|
+qs({package: 'source'}) git clone https://github.com/explosion/spaCy
|
|
+qs({package: 'source'}) cd spaCy
|
|
+qs({package: 'source', os: 'mac'}) export PYTHONPATH=`pwd`
|
|
+qs({package: 'source', os: 'linux'}) export PYTHONPATH=`pwd`
|
|
+qs({package: 'source', os: 'windows'}) set PYTHONPATH=/path/to/spaCy
|
|
+qs({package: 'source'}) pip install -r requirements.txt
|
|
+qs({package: 'source'}) python setup.py build_ext --inplace
|
|
|
|
for _, model in MODELS
|
|
+qs({model: model}) python -m spacy download #{model}
|