Model installer doesn't check for permissions until /after/ downloading the relevant model. #2082
Labels
enhancement
Feature requests and improvements
feat / cli
Feature: Command-line interface
install
Installation issues
This is a minor issue.
Basically, if you run
python3 -m spacy download en_core_web_lg
(or similar), the requisite install permissions are not checked until after the selected model has downloaded. The install then aboirts with a permission issue, and apparently any temporary downloads are deleted.This means you can potentially wait a long time for a model to download, only to discover that you actually needed to run the command with
sudo
.Furthermore, the downloaded model appears to not be cached, as rerunning
python3 -m spacy download en_core_web_lg
withsudo
does not seem to be aware that the model was already downloaded.It seems that it'd be ideal to have
python3 -m spacy download
either check for the permissions it needs to install the file it will download before beginning it's download, or have it store the temp downloads somewhere, and check there before doing a web retrieval.The text was updated successfully, but these errors were encountered: