fidler-lab / polyrnn-pp

Inference Code for Polygon-RNN++ (CVPR 2018)
GNU General Public License v3.0
735 stars 161 forks source link

error downloading requirements #22

Open SummerXia93 opened 5 years ago

SummerXia93 commented 5 years ago

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/

csgcmai commented 5 years ago

It seems that you are using python3, please delete the requirement for "subprocess32".