serverless-python-requirements icon indicating copy to clipboard operation
serverless-python-requirements copied to clipboard

Can one be able to specify pip bin?

Open mgrazianoc opened this issue 3 years ago • 1 comments

Using Fedora 33, the currently Python version on the system is 3.9, which by itself raised an error since AWS provider python runtime is 3.8.

After installing python 3.8 and set

custom: pythonRequirements: dockerizePip: non-linux pythonBin: /usr/bin/python3.8

is raises the error of pip not founded (since pip is now pip3.8).

For the matter, python 3.9 cannot be remove because some Fedora dependencies lies on the 3.9 version.

I tried to find some documentation about that on https://www.serverless.com/framework/docs/, but no success. I don't know if I didn't look enough, though.

Any ideas of how to resolve it?

mgrazianoc avatar Jan 13 '21 21:01 mgrazianoc

I would suggest using a python virtualenv to resolve the issue

rileypriddle avatar Dec 09 '21 10:12 rileypriddle