search

Home  >  Q&A  >  body text

nginx - pip install python library error

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?

高洛峰高洛峰2750 days ago797

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-16 17:26:05

    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~

    reply
    0
  • Cancelreply