Skip to content

PEX documentation and Makefile is unclear on supported Python versions #12809

Closed Answered by adrianeboyd
Cagrosso asked this question in Help: Installation
Discussion options

You must be logged in to vote

The idea with the Makefile is that you can set PYVER and SPACY_EXTRAS to the versions/packages that you need by setting env variables (or by editing the Makefile).

A word of warning about pex on linux with torch>=1.12: the default pypi torch 1.12+ (with nvidia libraries) does not appear to work at all in the pex file and in any case, the final pex file with spacy requirements will go beyond pex's hard 2GB filesize limit.

For our own internal use (again, linux-only), we recently switched from pex to python-appimage. The setup is a little clunky because it assumes you need a desktop icon, etc., but otherwise I thought it was easy to get working. Put any models as requirements with github UR…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Cagrosso
Comment options

@adrianeboyd
Comment options

Answer selected by adrianeboyd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@adrianeboyd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scaling Scaling, serving and parallelizing spaCy
2 participants
Converted from issue

This discussion was converted from issue #12806 on July 10, 2023 10:43.