Questions tagged [numpy]

NumPy is a numerical computing library for Python with focus on multidimensional arrays and matrices. Use this tag for questions about how to install and use the NumPy library.

NumPy is an extension of the Python language that adds support to large multidimensional arrays and matrices, along with a large library of high-level mathematical functions for operations with these arrays.

66 questions
22
votes
3 answers

How to update to the latest numpy and scipy on Ubuntu 14.04LTS

On my Ubuntu 14.04LTS, for python3, I have >>> import numpy >>> import scipy >>> numpy.__version__ '1.8.2' >>> scipy.__version__ '0.13.3' I want to update numpy and scipy to the most recent version 1.9.2 and 0.16.0, I tried with the following…
12
votes
4 answers

No module named 'numpy'

Actually I am shifting from Windows to Linux. Using pycharm on Windows I have a python 3 script that requires numpy and matplotlib to run, so I installed them on my Linux system using sudo apt-get install python3-numpy sudo apt-get install…
rjbir
  • 123
6
votes
1 answer

Installation of python's numpy keeps failing

I'm trying to install numpy but the installation keeps failing for some reason. Actually, what I need is python's nolearn, but numpy (and scipy) are dependencies. So I ran: sudo pip install numpy But this fails with the installation…
5
votes
1 answer

Snapcraft Python2 building numpy with python-dev

just starting to get my hands dirty with snappy. I am trying to port a python project to a snappy app. The python code relies on numpy 1.5.1, which relies on python-dev being installed. My snapcraft parts section looks like: parts: mypythonapp: …
5
votes
1 answer

Problems installing Numpy in Virtualenv

I have numpy installed globally (I think via Django) but I'm trying to install it within a virtualenv. When I run pip install numpy (within my virtualenv), it gets stuck at Running setup.py install for numpy. Any ideas on how I can fix this? If…
bem
  • 51
4
votes
1 answer

Install Numpy for Python3.4.0 on Ubuntu 14.04.01 LTS

Python3.4.0 comes by default on Ubuntu 14.04.01 LTS. We can use it by typing on Terminal `python3. I want to use Numpy for Python3.4.0. I run import numpy but I had anImportError.So I installed it by runningsudo apt-get install python-numpy. Then I…
user284234
4
votes
2 answers

PyPy3 fails installing numpy

Basically when I call pypy3 -m pip install numpy --user I get thrown this lovely mess: Traceback (most recent call last): File "/opt/pypy3/lib-python/3/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File…
user849465
3
votes
1 answer

Numpy broken in Ubuntu 16.04 LTS

I have installed the package python-numpy on Ubuntu 16.04 LTS. Unfortunately, the package is broken: >>> import numpy Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/numpy/__init__.py",…
3
votes
3 answers

how to install numpy for python3

I need help with installing numpy to Ubuntu 16.04. after: $ pip3 install numpy come up always: PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/numpy' What to do? How can i install numpy?
Tukadas
  • 43
3
votes
0 answers

Why isn't VS Code debugger working on python?

Everytime I try to import numpy, the VS Code debugger won't work, giving the output File "/usr/lib/python3/dist-packages/numpy/core/init.py", line 16, in < module>; from . import multiarray ImportError: cannot import name 'multiarray' from…
2
votes
0 answers

What is an appropriate infrastructure for Deep Learning?

I work on Kaggle's Galaxy Zoo competition with Keras/Tensorflow, but the huge amount of data (lot of images) sends my computer to limbo. Mine is a more or less ordinary PC (i5) with a generous 48GB of RAM albeit I am unable to utilize my GPU (my…
Hendrik
  • 225
2
votes
0 answers

Numpy/Scipy with Openblas

I've been trying to install Numpy/Scipy and allow them to both use Openblas. I've been following various guides but have been using this one of late. At the end of the guide, there are a couple of tests to check the speed up of Numpy/Scipy. The…
Black
  • 153
2
votes
0 answers

How to make Python-3.4.2 use already installed Numpy?

Previously I installed Numpy for Python-3.4.0. Now that I installed conda, Python-3.4.2 comes with it, instead. So when I run python3 I use Python-3.4.2 instead. And when I call import numpy I get an ImportError. When I try to run sudo apt-get…
user284234
2
votes
1 answer

Why low swappiness (10) leads to system crashes?

As I have 128 GB of RAM, I wanted to minimize swap usage by setting vm.swappiness to 10. I ran a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, then calculating norms of the difference. …
abukaj
  • 485
2
votes
1 answer

python in Ubuntu 20.04

I upgraded from Ubuntu 18.04 to Ubuntu 20.04. Python3.6 disappeared and python3.8 was automatically installed. I am now having trouble using numpy and pandas with python3.8. Attempts to install them are met with a message that they are already…
1
2 3 4 5