简体   繁体   English

为什么我在pip install uwsgi之后找不到python模块uwsgi?

[英]why couldn't I find the python module uwsgi after pip install uwsgi?

After I have installed the uwsgi, I add the following code:安装 uwsgi 后,添加以下代码:

import uwsgi

But the IDE is warning that uwsgi module not exist.但是 IDE 警告说 uwsgi 模块不存在。

the command I used to install the uwsgi is:我用来安装 uwsgi 的命令是:

pip install uwsgi

the installed uwsgi package is:安装的 uwsgi 包是:

pip freeze | grep -i uwsgi
uWSGI==2.0.19.1

but in the site-packages dir there is not any uwsgi subdir.但是在站点包目录中没有任何 uwsgi 子目录。

If you are using Python 3.x you may need to use pip3.如果您使用的是 Python 3.x,则可能需要使用 pip3。

pip3 install uwsgi

And restart the Kernal.并重新启动内核。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM