Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Error during pip install on ubuntu #38

Closed
scalzee opened this issue Nov 14, 2017 · 15 comments
Closed

Error during pip install on ubuntu #38

scalzee opened this issue Nov 14, 2017 · 15 comments

Comments

@scalzee
Copy link

scalzee commented Nov 14, 2017

Subprocess32 is a dependency for the fbprophet library.

While pip installing the fbprophet module I received the following error:

Command "/home/ubuntu/anaconda3/envs/resfuture/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-DWKA4l/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-zcj5OE-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-DWKA4l/subprocess32/

When I tried to pip install just subprocess I encountered the same error:
Failed building wheel for subprocess32
Command "/home/ubuntu/anaconda3/envs/resfuture/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-paHlZS/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-mEbekx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-paHlZS/subprocess32/

Does anyone know how I can resolve this issue?

@tungli
Copy link

tungli commented Nov 17, 2017

I had the same error with updating matplotlib. Installing python-dev solved this for me:
sudo apt-get install python-dev

@skypeter1
Copy link

Solution exposed by @tungli worked for me too

@carmat88
Copy link

Thank you @tungli The solution you reported has made my day as well. Cheers.

@Kekushke
Copy link

Solution by @tungli worked for me. Thank you.

@gpshead
Copy link
Contributor

gpshead commented May 5, 2018

Yes, Python headers and a compiler toolchain are required on Linux.

@gpshead gpshead closed this as completed May 5, 2018
@zwx19961130
Copy link

Solution by @tungli worked for me.
Thanks

@vaishnavibala
Copy link

Try this
apt-get install -y python-subprocess32

@enaosun
Copy link

enaosun commented May 28, 2019

Solution by @tungli worked for me.
Thanks

@ryzwannj
Copy link

ryzwannj commented Jul 3, 2019

Solution by @tungli worked for me too
Thanks

@Rakshith2597
Copy link

Solution by @tungli worked for me as well.
Thanks

@dkhd
Copy link

dkhd commented Oct 2, 2019

It works for me, too. Thank you!

@kylep
Copy link

kylep commented Oct 5, 2019

I ran into this error trying to install python-openstackclient, on ubuntu 18.04. I had to run apt-get install gcc to resolve it.

@aishwaryap
Copy link

Is there any way to avoid this issue that does not require root access?

@mayankkhullar
Copy link

Answer by @kylep worked for me !!!

@Evanlin1224
Copy link

Answer by @tungli worked to me!!! Thanks guy!!!

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

No branches or pull requests