2 ms·
IMO, if it's something that I'm asking a coworker about, SO isn't going to have an easy (or correct) answer. For example, I am attempting to use a namespaced l
by falcolas 10y ago
IMO, if it's something that I'm asking a coworker about, SO isn't going to have an easy (or correct) answer.
For example, I am attempting to use a namespaced library installed with Pip in my Lambda function. It doesn't work - can't import the library. Google gives a bunch of noise. SO gives a bunch of noise.
The solution? Asked a coworker, got an answer back immediately. Import the 'site' package, and set up the current working directory as a site directory. This makes the library .pth files work properly.