Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

after installing uwsgi, python will still error: No module named 'uwsgi'

I'm not exactly sure what is required to import uwsgi in python3. This issue has started happening very recently. I have web socket methods throughout my app that import uwsgi, it sounds like a fairly common module.

But after verifying that it was properly installed:

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)

It seems as if I cannot use this module anywhere:

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'

Has the uwsgi module changed in recent months?

like image 902
Matt Andrzejczuk Avatar asked Feb 17 '19 03:02

Matt Andrzejczuk


People also ask

Where does pip install uWSGI?

The uwsgi binary is placed in /usr/bin/uwsgi when installing uwsgi this way.

What does uWSGI stand for?

uWSGI (source code), pronounced "mu wiz gee", is a Web Server Gateway Interface (WSGI) server implementation that is typically used to run Python web applications.

Does uWSGI work on Windows?

uWSGI doesn't work on bare Windows. (It might work on Cygwin, but that's probably not something you want to pursue.)


1 Answers

Uwsgi is not a module it is applications server. To use uwsgi module in your app, you should run your app with uwsgi.

like image 98
Debendra Avatar answered Oct 16 '22 17:10

Debendra