mirror of https://github.com/explosion/spaCy.git
fix py2/3 issue
This commit is contained in:
parent
235f094534
commit
5551052840
|
@ -36,14 +36,14 @@ def main(data_size='all', force=False):
|
||||||
print("Model already installed. Please run 'python -m "
|
print("Model already installed. Please run 'python -m "
|
||||||
"spacy.en.download --force' to reinstall.", file=sys.stderr)
|
"spacy.en.download --force' to reinstall.", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except PackageNotFoundException, CompatiblePackageNotFoundException:
|
except (PackageNotFoundException, CompatiblePackageNotFoundException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
package = sputnik.install(about.__name__, about.__version__, about.__default_model__)
|
package = sputnik.install(about.__name__, about.__version__, about.__default_model__)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sputnik.package(about.__name__, about.__version__, about.__default_model__)
|
sputnik.package(about.__name__, about.__version__, about.__default_model__)
|
||||||
except PackageNotFoundException, CompatiblePackageNotFoundException:
|
except (PackageNotFoundException, CompatiblePackageNotFoundException):
|
||||||
print("Model failed to install. Please run 'python -m "
|
print("Model failed to install. Please run 'python -m "
|
||||||
"spacy.en.download --force'.", file=sys.stderr)
|
"spacy.en.download --force'.", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue