microscopic-knife-5995
02/04/2025, 6:40 PMinherit_path not working (possibly user error). Hello, I am trying to build a PEX file with only source code and no dependency to speed up deployment. I am planning to create a deployment PEX following advice from @broad-processor-92400. When I create a PEX file for first party source code and enable inherit_path="prefer" it doesn't pick up packages that is already installed in the system.
ModuleNotFoundError: No module named 'uvicorn'
The PEX-INFO has "inherit_path": "prefer" and the Python interpreter has uvicorn installed. I must be missing something obvious as this post seems to show that it should work. Could anyone share some insights please?broad-processor-92400
02/04/2025, 10:55 PMpython -c 'import uvicorn' works?microscopic-knife-5995
02/04/2025, 10:59 PMbroad-processor-92400
02/04/2025, 10:59 PM