-
Notifications
You must be signed in to change notification settings - Fork 158
Description
I have this error warning when I do the pip install -r requirements.txt step. Do you have any idea how to fix this?
Building wheels for collected packages: subprocess32
Building wheel for subprocess32 (setup.py) ... error
Complete output from command /home/ai/polyrnn-pp-master/env/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-lH9QHe/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-r5982Y --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying subprocess32.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_posixsubprocess' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
_posixsubprocess.c:3:20: fatal error: Python.h: 没有那个文件或目录
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Failed building wheel for subprocess32
Running setup.py clean for subprocess32
Failed to build subprocess32
Installing collected packages: subprocess32, pytz, python-dateutil, numpy, matplotlib, pbr, mock, networkx, opencv-python, Pillow, protobuf, PyWavelets, scipy, scikit-image, Werkzeug, tensorflow-tensorboard, tensorflow-gpu, tqdm
Running setup.py install for subprocess32 ... error
Complete output from command /home/ai/polyrnn-pp-master/env/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-lH9QHe/subprocess32/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-4VN9NO/install-record.txt --single-version-externally-managed --compile --install-headers /home/ai/polyrnn-pp-master/env/include/site/python2.7/subprocess32:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying subprocess32.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_posixsubprocess' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
_posixsubprocess.c:3:20: fatal error: Python.h: 没有那个文件或目录
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/ai/polyrnn-pp-master/env/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-lH9QHe/subprocess32/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-4VN9NO/install-record.txt --single-version-externally-managed --compile --install-headers /home/ai/polyrnn-pp-master/env/include/site/python2.7/subprocess32" failed with error code 1 in /tmp/pip-install-lH9QHe/subprocess32/