Skip to content
Discussion options

You must be logged in to vote

Here are the details of how I managed to get it to work. Note that it may not work for you, because your venv may already contain some conflicting modules/versions. Neither is it a good 'pythonic' example.
Note the final distribution using transformers is a monster - 7.7 GB (including en_core_web_trn and _lg). I gave up on using PyInstaller option --onefile because building the archive takes forever (and so does the first invocation). Besides, my distribution needs some other files, so using --onedir and then zip-ing it is far more convenient and faster.

My environment:

spaCy version    3.2.0
Location         C:\Work\ML\Spacy3\lib\site-packages\spacy
Platform         Windows-10-10.0.19042…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@polm
Comment options

@mbrunecky
Comment options

@qojjs
Comment options

@mbrunecky
Comment options

@qojjs
Comment options

Answer selected by svlandeg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party Third-party packages and services gpu Using spaCy on GPU
5 participants