Yesterday was my first day using DigitalOcean. I set up Ubuntu v. 14.04, cloned the repository my colleague and I are working on, and tried to install all the required Python modules and non-Python dependencies, but there were problems with NumPy that I could not resolve. I have not used Ubuntu in some months, but I normally use pip for almost all Python installations, within a virtualenv virtual environment, and install the many dependencies using apt-get.
I remember that NumPy often presents problems. This time it seemed impossible to make NumPy compile. Installing with root privileges succeeded, but then NumPy was not available within the virtualenv environment.
I have now installed the Anaconda distribution, instead, so that I can move forward, but I’d be glad to hear of suggestions for effective NumPy installation using pip within a virtual environment.
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!
Without seeing the error, it’s hard to say exactly what went wrong. Though one thing to remember is that installing numpy with pip requires compiling <br>C code, so you need gcc and Python’s developmental headers around: <br> <br>apt-get install python-dev build-essential <br> <br>Also, if you want your virtualenv to be able to access packages installed through apt, create it using: <br> <br>virtualenv --system-site-packages your_enev
This comment has been deleted
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.