我不确定在python3中导入uwsgi需要什么。这个问题是最近才开始发生的。我的应用程序中都有import uwsgi
的Web套接字方法,听起来像是一个相当普通的模块。
但是在确认它已正确安装后:
pip install uwsgi
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Requirement already satisfied: uwsgi in /usr/local/lib/python3.4/site-packages (2.0.18)
似乎我无法在任何地方使用此模块:
root@4a4d65e514ba:/usr/src# python
Python 3.4.5 (default, Dec 14 2016, 18:54:20)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uwsgi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'uwsgi'
最近几个月uwsgi模块有变化吗?
答案 0 :(得分:0)
Uwsgi不是模块,而是应用程序服务器。 要在您的应用中使用uwsgi模块,您应该使用uwsgi运行您的应用。