Quick question - is there a way to take pants-gene...
# general
p
Quick question - is there a way to take pants-generated lockfile and install all packages from it without using pants, globally in a system? I'm looking for something like
pip install <lockfile.lock>
but that's not a format pip supports, are there other ways of doing that? Thanks!
1
c
Hi, That’s the topic of this recent thread that had this little gist in it: https://pantsbuild.slack.com/archives/C046T6T9U/p1686843597813289?thread_ts=1686840160.460539&amp;cid=C046T6T9U
tl;dr; you need to strip the comments from the pants lockfile then you can pass that to pex to create the venv.
oh, or in case you don’t want it in a venv, use pex to export the requirements for you.
p
ok, so stripping the comments, then
pex3 lock export
should do the trick? Thanks!
c
something like that, yea 🙂
p
it worked, thanks @curved-television-6568 🙂
👍 1
c
thanks for confirming 👍