我目前正在尝试使用Amazon EC2部署我的应用。我正在使用gunicorn
和Nginx。当我在gunicorn
中安装virtualenv
时,我收到以下错误...
Downloading/unpacking gunicorn
Downloading gunicorn-19.4.1-py2.py3-none-any.whl (112kB): 112kB downloaded
Installing collected packages: gunicorn
Compiling /home/ubuntu/env/build/gunicorn/gunicorn/workers/_gaiohttp.py ...
File "/home/ubuntu/env/build/gunicorn/gunicorn/workers/_gaiohttp.py", line 78
yield from self.wsgi.close()
^
SyntaxError: invalid syntax
Successfully installed gunicorn
Cleaning up...
我怀疑这是我无法让gunicorn
与我的应用正常工作的原因。我怎样才能正确安装gunicorn?