python virtualenv No module error

前端 未结 1 1035
一向
一向 2021-01-29 02:44

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 t

相关标签:
1条回答
  • 2021-01-29 03:20

    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
    
    0 讨论(0)
提交回复
热议问题