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.
66
questions
0
votes
2
answers
216
views
How to install numpy on python 3.10 running on ubuntu 22.04
I need to have numpy on python3.10 on my ubuntu 22.04 .
Here is what I get when I attempt to install it:
$ sudo apt install python3.10 python3-numpy python3-mako python3-markupsafe \
python3-yaml ...
0
votes
0
answers
143
views
Failed to load entry point 'list' on running " ros2 topic list "
On running ros2 topic list in terminal after newly installing Ros 2 Foxy on Ubuntu 20.04, it is showing the following error.
/opt/ros/foxy/bin/ros2:6: DeprecationWarning: pkg_resources is deprecated ...
2
votes
1
answer
212
views
Why low swappiness (10) leads to system crashes? [duplicate]
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, ...
0
votes
0
answers
103
views
Installing Cantera 1.8.0 on Ubuntu 18.04
I am trying a lot to install cantera 1.8.0. It is an older version but i need to install it on my Ubuntu 18.04. I am
Codeline of the error is
/usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning:...
0
votes
1
answer
328
views
jupyter notebook can use numpy but not ubuntu in wsl2
The problem is when I try to use numpy or any other module from the ubuntu terminal in WSL@.
It throws an error, but it works seamlessly from jupyter-notebook.
Also, WSL2 ubuntu doesn't load the ...
-1
votes
1
answer
1k
views
How to update "alen" function to "len" function
i I'm having problems running code, I'm new to this so I dont really know that much. I'm running Ubuntu 20.04 on VirtualBox 6.1.36 and so far I've installed Laplack and Blas libraries, gfortran, ...
1
vote
2
answers
18k
views
python3.10 with numpy - ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
I'm trying to install numpy for python3.10 (not in a venv). I installed python 3.10 using
sudo apt install python3.10
pip didn't seem to be installed so I did
jeremy@jeremy-Blade:/$ python3.10 -m pip ...
0
votes
1
answer
132
views
i've got some issues with the installed Python 3.8.5 , whenever i try to import a package it shows an error which says : No module named '.....'
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<console>", line 1, in <module>
ModuleNotFoundError: No module named 'matplotlib'
2
votes
1
answer
3k
views
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 ...
1
vote
0
answers
122
views
Installing Ananconda on Ubuntu 20.04, many erros
Disclaimer: I'm very very new to Linux.
Background: I'm having issues installing Anaconda on my Ubuntu 20.04. I am running this off of my USB stick on a PC. I tried downloading the community pycharm ...
0
votes
1
answer
1k
views
no module named numpy error in python 3
i am using visual studio code for python3, and i installed pip and numpy on it.
also changed path in command prompt. but it is still showing this error "ModuleNotFoundEror: no module named numpy&...
1
vote
0
answers
265
views
Ubuntu 18.04-Runtime error- Embedding python to C
I am working on a project which is related to object detection and ocr. I am using Ubuntu 18.04 and python 2.7, yolov3 for object detection and tesseract 5.0.0-alpha-692-g62ea for ocr. I have to embed ...
2
votes
1
answer
41k
views
I can't import numpy in Visual studo code
I've installed Numpy for python3, but when i import the package in Visual Studio Code i got this message error :
Import Error: No module named numpy.
I used pip3 install numpy to install it, the ...
2
votes
1
answer
247
views
Vs code python, no module found
I'm trying to get vs studio working with python 3.7 and when I go to load numpy, it says "no module found". What's the best way to fix this?
0
votes
2
answers
3k
views
Unable to install numpy for python2
I used to have numpy working earlier. Not sure what happened, but now I get the import error:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <...
3
votes
0
answers
335
views
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 ...
2
votes
2
answers
3k
views
Installing Numpy using pip3 on Ubuntu - Error “Command failed with exit status 1”
I have installed pip3 on Ubuntu. But while using it to install numpy (using command 'pip3 install numpy') I am getting the following error -
error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -...
1
vote
2
answers
7k
views
numpy install error
Background
Instructions indicate installing numpy in a python virtual environment (log below). The log indicates warning and errors: although the install process indicates 'Success', the warnings / ...
0
votes
2
answers
1k
views
How do I connect installed module to python shell?
I have downloaded 'numpy' by using
pip install numpy
and it says that my installation is successful. I have also installed python 3.7.3 on Windows, but everytime I try to import numpy on the python ...
1
vote
1
answer
640
views
Fix dependencies pandas python3
Today I installed another package via
pip3 install seaborn
after doing so my pandas package seems to be broken and I have no idea how to fix it. I tried to uninstall and reinstall pandas, numpy and ...
1
vote
1
answer
2k
views
python 3.7 on Ubuntu 16.04
I have tried to install python 3.7 on my ubuntu 16.04 via this link. It is
Installing it without any error and it returns :
which python3.7
/usr/local/bin/python3.7
Also I have other python ...
0
votes
3
answers
7k
views
No module named numpy
I am trying to run Jupyter notebook from my Ubuntu subsystem in Windows 10. I've installed numpy, scipy, and pandas using the following commands:
pip install scipy numpy
pip install pandas
When I ...
0
votes
2
answers
7k
views
Cannot import Numpy and Pandas
I have installed numpy and pandas using pip. After executing my python code it shows the following error:
Traceback (most recent call last):
File "demo.py", line 1, in <module>
import ...
1
vote
1
answer
1k
views
How to access "python3.6/site-packages" directory?
So right now I am trying to import tflearn on a python script, but that returns the error
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'
(Theres a huge error ...
1
vote
1
answer
270
views
Problem with Python [duplicate]
i was trying to fix my GPU to use with Theano, i had a problem with the liblas.so but python worked good, but when i did
sudo ldconfig /usr/local/cuda/lib64
(i got this from internet, bad idea, i ...
1
vote
0
answers
182
views
Importing numpy fails with python-dbg but not python [duplicate]
I am trying to debug my Python program so I apt-get install python3.6-dbg. But when I run python3.6-dbg and I try to do import numpy I get:
>>> import numpy
Traceback (most recent call last):...
0
votes
2
answers
11k
views
How to install numpy and scipy for python 2.7.12, Ubuntu 16.04?
I tried to install numpy using: pip install numpy
It worked, but I got a warning:
warnings.warn(warning, RequestsDependencyWarning).
Then I tried to install scipy with: python -m pip install --...
0
votes
2
answers
3k
views
How to install numpy for Python 3.6.5 explicitly [duplicate]
This is not a duplicate question, I want to install numpy for python 3.6.5. it works on 3.4 on the same machine but I need it for 3.6, I tried "pip3 install numpy" and "apt-get install python3-numpy", ...
0
votes
1
answer
209
views
problem with two versions of python
I'm new to python and ubuntu. I installed two versions of python to be able to use them in jupyter .. but when i checked the version of numpy i got
python
import numpy
numpy.__version__
and got
&...
4
votes
2
answers
8k
views
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 ...
2
votes
3
answers
17k
views
ImportError: cannot import name 'multiarray'
I installed Python3.6 as described here:
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
Then I installed numpy as follows:
sudo apt-get install ...
0
votes
1
answer
3k
views
python numpy or scipy error
I want to work in python. When I import scipy or numpy it shows these errors:
saikat@saikat:~/Downloads/Python-2.7.15$ python
Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42)
[GCC 7.2....
1
vote
1
answer
5k
views
Numpy installed only for python3.5, not for python3.6
I have both python3.5 and python3.6 in my computer. When I try to import python in numpy3.6, I get an error. When I try to install numpy through sudo pip3 install numpy, I get the message Requirement ...
0
votes
0
answers
563
views
Ubuntu 16.04 : Can't seem to make numpy work in python 3.6.5 but it works fine in python 2.7.12
when I run import numypy in python 3 , the following appears :
ModuleNotFoundError: No module named 'numpy'
So you might say try pip3 install numpy
But it is already installed which is confirmed when ...
0
votes
1
answer
106
views
NVIDIA/DIGITS Run Time Error?
I have installed DIGITS on Ubuntu 16.04 regarding the NVIDIA/DIGITS. When I run ./digits-devserver
output becomes:
RuntimeError: module compiled against API version 0xc but this version of numpy ...
1
vote
1
answer
2k
views
How to remove this error while installing numpy on Ubuntu?
I am getting this exception while trying to install numpy. I have tried both by directly calling pip(command: pip install numpy) and through sudo as well.
Please help resolve this:
fareha@...
0
votes
0
answers
1k
views
How to install a package in the root directory using virtual environment?
I have created a virtual environment in the root directory and trying to install numpy using the command:
pip install numpy
It gives the following error:
OSError: [Errno 13] Permission denied:
If ...
0
votes
1
answer
1k
views
Numpy error : Error while running numpy.mean(num)(where num is an array) [closed]
I am new to data science and just installed numpy in the system. So, I stuck at a place when I run numpy.mean(num) function to calculate the mean of the array of numbers. So, can anybody suggest the ...
1
vote
1
answer
14k
views
How do I write a function in Python with a filename as an argument? [closed]
**EDIT:
Sorry if I was unclear. Let me clarify: I'm trying to write a function that takes a filename and a number i as arguments, loads the file specified by the filename with numpy.loadtxt(), and ...
-1
votes
1
answer
3k
views
import error:module named numpy
I am getting import error: module named numpy. Does this mean i have to install numpy?
I have downloaded the new version extracted it into home. I am not sure what else to do. I am using Ubuntu 16.04....
0
votes
1
answer
1k
views
Error installing scikitlearn
I am trying to install scikit learn using
pip install -U scikit-learn
But it doesn't get installed. I tried to install numpy and scipy at first but I could not install those either :(
0
votes
2
answers
872
views
How to import numpy as standard user from server?
I installed python, numpy, scipy as super user in server and I can import them without any errors. However, standard users (who connect with ssh) can not import them.
How to fix it so that standard ...
0
votes
2
answers
12k
views
fatal error: numpy/arrayobject.h: No such file or directory
Can you please help with this?
mona@pascal:~/computer_vision/tf-faster-rcnn/lib$ sudo pip2 install numpy
The directory '/home/mona/.cache/pip/http' or its parent directory is not owned by the current ...
2
votes
0
answers
157
views
What is an appropriate infrastructure for Deep Learning? [closed]
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 ...
0
votes
0
answers
2k
views
How to update a version of numpy [duplicate]
i have a ubuntu 14.04 , i want to update my version of numpy .
How to do it ?
1
vote
1
answer
14k
views
ImportError: Missing required dependencies ['numpy', 'pytz'] when executing python3?
I have installed numpy and pytz packages through
pip3 install <package name>
But there shows the following import errors when executing the following df_demo.py code, I do not know why and ...
3
votes
1
answer
2k
views
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 "<stdin>", line 1, in <...
3
votes
3
answers
58k
views
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 ...
5
votes
1
answer
820
views
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 ...
0
votes
1
answer
1k
views
Problem occured when install numpy for python3.4 on ubuntu [duplicate]
When I tried
pip3 install numpy
I got the error as
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
Then I continue to install python-dev but got ...