nginx - pip install python library error
高洛峰
高洛峰 2017-05-16 17:24:05
0
1
795

CentOS 6.5
Python 2.6
pip 7.0.1

Build a Django program deployment environment from scratch, using the nginx uwsgi Django mode. After reinstalling the operating system, executed the following commands:
1. Install necessary development packages:
yum groupinstall "Development tools"

yum install zlib-devel bzip2-devel pcre-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel

2. Download https://bootstrap.pypa.io/get-pip.py
3. Run python get-pip.py
4. Install the Python third-party libraries that the project depends on
pip install -r requirements.txt

When executing the fourth step, an error is reported:


close up:

What causes this?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
小葫芦

Okay, I’m asking myself again;

The close-up part in the question should be the place where the error occurred,
It’s the one above Python.h :没有那个文件或目录。
This header file requires the python-devel library to be installed.

The solution is as follows:
yum install python-devel;
yum install pycrypto;
Done in two steps.

When all this work is completed, I will write an article to record it~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template