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年軟件開(kāi)發(fā)和IT教學(xué)經(jīng)驗(yàn)。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項(xiàng)目經(jīng)理、高級(jí)軟件工程師等職務(wù)。 網(wǎng)絡(luò)人氣名人講師,...
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 :沒(méi)有那個(gè)文件或目錄。
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~