Add more details on symlink error & Windows solution (resolves #1941) [ci skip]

This commit is contained in:
ines 2018-02-09 10:43:33 +01:00
parent 8eaa934382
commit ab33e274f5
3 changed files with 15 additions and 4 deletions

View File

@ -38,9 +38,10 @@ p
| #[code spacy/data] directory. This means your user needs permission to do | #[code spacy/data] directory. This means your user needs permission to do
| this. The above error mostly occurs when doing a system-wide installation, | this. The above error mostly occurs when doing a system-wide installation,
| which will create the symlinks in a system directory. Run the | which will create the symlinks in a system directory. Run the
| #[code download] or #[code link] command as administrator, or use a | #[code download] or #[code link] command as administrator (on Windows,
| #[code virtualenv] to install spaCy in a user directory, instead | simply right-click on your terminal or shell ans select "Run as
| of doing a system-wide installation. | Administrator"), or use a #[code virtualenv] to install spaCy in a user
| directory, instead of doing a system-wide installation.
+h(3, "no-cache-dir") No such option: --no-cache-dir +h(3, "no-cache-dir") No such option: --no-cache-dir

View File

@ -31,3 +31,13 @@ p
import spacy import spacy
nlp = spacy.load('en') nlp = spacy.load('en')
doc = nlp(u'This is a sentence.') doc = nlp(u'This is a sentence.')
+infobox("Important note", "⚠️")
| To allow loading models via convenient shortcuts like #[code 'en'], spaCy
| will create a symlink within the #[code spacy/data] directory. This means
| that your user needs the #[strong required permissions].
| If you've installed spaCy to a system directory and don't have admin
| privileges, the model linking may fail. The easiest solution
| is to re-run the command as admin, or use a #[code virtualenv]. For more
| info on this, see the
| #[+a("/usage/#symlink-privilege") troubleshooting guide].

View File

@ -132,7 +132,7 @@ p
# set up shortcut link to load local model as "my_amazing_model" # set up shortcut link to load local model as "my_amazing_model"
python -m spacy link /Users/you/model my_amazing_model python -m spacy link /Users/you/model my_amazing_model
+infobox("Important note") +infobox("Important note", "⚠️")
| In order to create a symlink, your user needs the #[strong required permissions]. | In order to create a symlink, your user needs the #[strong required permissions].
| If you've installed spaCy to a system directory and don't have admin | If you've installed spaCy to a system directory and don't have admin
| privileges, the #[code spacy link] command may fail. The easiest solution | privileges, the #[code spacy link] command may fail. The easiest solution