直接说方法:把pip install uwsgi 换成pip install https://projects.unbit.it/downloads/uwsgi-lts.tar.gz
我当时的情况是报了如下错↓: 然后尝试装了各自依赖全都没用,最后竟然换成网址的形式就好了
(venv) [root@VM-16-17-centos ~]# pip install uwsgi
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Collecting uwsgi
Using cached http://mirrors.tencentyun.com/pypi/packages/1b/ed/136698c76722268569eac4e48ab90f3ced8b8035e414a8290cb935c40c16/uwsgi-2.0.24.tar.gz (810 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: uwsgi
Building wheel for uwsgi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
/od/venv/lib/python3.9/site-packages/setuptools/dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
&nb

文章讲述了作者在使用pipinstalluwsgi时遇到错误,通过将包URL代替官方仓库,解决了依赖问题。同时,文中提到了Setuptools的警告,关于dash-separated选项即将被弃用的提示。
最低0.47元/天 解锁文章
1123





