By burstbreathz
Hi, I am currently unable to install Scipy in my virtualenv. I have tried building via pip, wheels (as per the stack overflow suggestion), and the default package manager, but none of them have worked. My error message is as follows:
c++: internal compiler error: Killed (program cc1plus)
error: Command “c++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -D__STDC_FORMAT_MACROS=1 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c scipy/sparse/sparsetools/csr_wrap.cxx -o build/temp.linux-x86_64-2.7/scipy/sparse/sparsetools/csr_wrap.o” failed with exit status 4
I have the latest version of gcc as well as all of the scipy dependencies, so I am not sure what is causing this problem.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Yup, the article below (travisirby’s answer) worked for me with the suggested 1024 megs of swap.
I had the same problem, and I believe it’s because the scipy install runs out of ram. I followed digitalocean’s guide to adding a swap file and it worked afterwards: <br> <br>https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04 <br> <br>I’d make the swap 1024 megs instead of 512 because I got close to running out.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.