Skip to content Skip to sidebar Skip to footer

Python Virtualenv No Module Error

I am on Mac OS and developing for google cloud platform. I have created vitualenv - virtualenv xyz. I activated using - source xyz/bin/activate Then, I installed the pkg I needed

Solution 1:

You're mixing the instructions for installing dependencing for the standard environment with those for the flexible environment. Related: How to tell if a Google App Engine documentation page applies to the standard or the flexible environment

You're using dev_appserver.py so I assume your app is a standard environment one, in which case you need to install the library into your app (note the -t lib arguments), not on the system/venv. Assuming you execute from your app's dir:

pip install python-dateutil -t lib

Post a Comment for "Python Virtualenv No Module Error"