mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Update quickstart install steps (#10092)
* For conda: * Use conda environment rather than venv * Install `spacy-transformers` as a conda package * For pip: * Add quotes if extras are included
This commit is contained in:
parent
2ff53834bb
commit
7d528e607c
|
@ -113,8 +113,7 @@ const QuickstartInstall = ({ id, title }) => {
|
|||
{
|
||||
id: 'venv',
|
||||
title: 'virtual env',
|
||||
help:
|
||||
'Use a virtual environment and install spaCy into a user directory',
|
||||
help: 'Use a virtual environment',
|
||||
},
|
||||
{
|
||||
id: 'train',
|
||||
|
@ -165,27 +164,51 @@ const QuickstartInstall = ({ id, title }) => {
|
|||
setters={setters}
|
||||
showDropdown={showDropdown}
|
||||
>
|
||||
<QS config="venv">python -m venv .env</QS>
|
||||
<QS config="venv" os="mac">
|
||||
<QS package="pip" config="venv">
|
||||
python -m venv .env
|
||||
</QS>
|
||||
<QS package="pip" config="venv" os="mac">
|
||||
source .env/bin/activate
|
||||
</QS>
|
||||
<QS config="venv" os="linux">
|
||||
<QS package="pip" config="venv" os="linux">
|
||||
source .env/bin/activate
|
||||
</QS>
|
||||
<QS config="venv" os="windows">
|
||||
<QS package="pip" config="venv" os="windows">
|
||||
.env\Scripts\activate
|
||||
</QS>
|
||||
<QS package="source" config="venv">
|
||||
python -m venv .env
|
||||
</QS>
|
||||
<QS package="source" config="venv" os="mac">
|
||||
source .env/bin/activate
|
||||
</QS>
|
||||
<QS package="source" config="venv" os="linux">
|
||||
source .env/bin/activate
|
||||
</QS>
|
||||
<QS package="source" config="venv" os="windows">
|
||||
.env\Scripts\activate
|
||||
</QS>
|
||||
<QS package="conda" config="venv">
|
||||
conda create -n venv
|
||||
</QS>
|
||||
<QS package="conda" config="venv">
|
||||
conda activate venv
|
||||
</QS>
|
||||
<QS package="pip">pip install -U pip setuptools wheel</QS>
|
||||
<QS package="source">pip install -U pip setuptools wheel</QS>
|
||||
<QS package="pip">
|
||||
pip install -U {pkg}
|
||||
{pipExtras && `[${pipExtras}]`}
|
||||
{pipExtras
|
||||
? `pip install -U '${pkg}[${pipExtras}]'`
|
||||
: `pip install -U ${pkg}`}
|
||||
{nightly ? ' --pre' : ''}
|
||||
</QS>
|
||||
<QS package="conda">conda install -c conda-forge spacy</QS>
|
||||
<QS package="conda" hardware="gpu">
|
||||
conda install -c conda-forge cupy
|
||||
</QS>
|
||||
<QS package="conda" config="train">
|
||||
conda install -c conda-forge spacy-transformers
|
||||
</QS>
|
||||
<QS package="source">
|
||||
git clone https://github.com/{repo}
|
||||
{nightly ? ` --branch ${DEFAULT_BRANCH}` : ''}
|
||||
|
@ -205,9 +228,6 @@ const QuickstartInstall = ({ id, title }) => {
|
|||
<QS config="train" package="conda" comment prompt={false}>
|
||||
# packages only available via pip
|
||||
</QS>
|
||||
<QS config="train" package="conda">
|
||||
pip install spacy-transformers
|
||||
</QS>
|
||||
<QS config="train" package="conda">
|
||||
pip install spacy-lookups-data
|
||||
</QS>
|
||||
|
|
Loading…
Reference in New Issue
Block a user