Lambda can't find module even though it's installed (might be a "-" vs "_" naming problem?)


I am working in a virtual environment, pip installing packages as needed, pip freeze > requirements.txt and following all necessary steps before serverless deploy.

I’m having troubles with one of my packages - watson_developer_cloud. The lambda function spits out:

"No module named 'watson_developer_cloud'"

Pip insists adding the package to requirements as (hyphens):

I’ve tried to replace the hyphens with underscores in the requirements.txt file and then running another serverless deploy but I still have the same problem. Note that the naming convention for the import and for the package directory uses underscores (watson_developer_cloud). Any idea what might be causing this?