1

I just recently installed Ubuntu 14.04.2 LTS alongside Windows-7 (64-bit). I wanted to install the latest versions of numpy, scipy, matplotlib, and other packages for Python3. I saw the we can use sudo apt-get install python3-numpy python3-scipy, but the Ubuntu software center does not contain the latest versions of numpy, scipy, etc.

Can somebody point me to a tutorial to install the latest version of these packages from the source in Ubuntu?

1 Answer 1

0

This should do the deal. Building both numpy and scipy from git repository. About upgrading matplotlib you can read here

6
  • How do I make sure I install numpy and scipy specifically for Python3.4 and not for Python2.7.x? Should I replace Python with Python3 wherever it is used? Mar 2, 2015 at 0:50
  • If you install direct from git it should be up to date version supporting Python 3.4 according to its documentation link Mar 2, 2015 at 0:55
  • Hi, I followed the steps outlink in the link you sent for installing numpy and scipy from git. All the process went fine. However, when I try import numpy as np and then np.__version__, I get the following error: AttributeError: 'module' object has no attribute '_version_'. The same happens for scipy. Further, none of the subroutines of the numpy, such as numpy.arange works. Although I didn't see any error during installation, is it possible that the packages didn't install correctly? Mar 2, 2015 at 2:00
  • How did you try to print out the version? Via script or command line? 'import numpy' >> 'print numpy.__version__'? Mar 2, 2015 at 2:05
  • when I tried dir(numpy), version is not one of the attributes? Also, numpy.arange doesn't work either? It's just not installed correctly in my belief. Mar 2, 2015 at 2:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .