Ubuntu安装uWSGI失败

版权声明:欢迎转载,转载请注明出处 https://blog.csdn.net/weixin_44649870/article/details/88853835

在服务器上生成了一个新的python3.5虚拟环境,但是pip install uwsgi总是失败
报错:
Command "/root/python/salary/venv_salary/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-otonv3rl/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-w27syuak/install-record.txt --single-version-externally-managed --compile --install-headers /root/python/salary/venv_salary/include/site/python3.5/uwsgi" failed with error code 1 in /tmp/pip-install-otonv3rl/uwsgi/
解决:

# 安装依赖
apt-get install libpython3.5-dev  # libpython3.5-dev对应python3.5,版本号要一致
pip install uwsgi

猜你喜欢

转载自blog.csdn.net/weixin_44649870/article/details/88853835