Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error downloading requirements #22

Open
SummerXia93 opened this issue Feb 19, 2019 · 1 comment
Open

error downloading requirements #22

SummerXia93 opened this issue Feb 19, 2019 · 1 comment

Comments

@SummerXia93
Copy link

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
Copy link

csgcmai commented Sep 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants