I have installed the package "stereoscope" successfully a few days ago and have been using it to do analysis. However, when I am trying to use it today I got the error that the command "stereoscope" is not found. I suspect that this error usually comes up when the package is not installed. It is weird I know. Therefore, I tried to install it again. However, I found the problem "numpy 1.21.1 is installed but numpy<1.21,>=1.17 is required by {'numba'}". What I understand from this error is that I need to install the NumPy version less than 1.21.1 or greater than or equal to 1.17. So, I tried to install the required version such as NumPy 1.20.3. The issue remains the same. I do not know why it is still saying my numpy version is 1.21.1 even after I uninstalled this version. Please help me with how to resolve this issue?
This is the link where I follow to do the installation stereoscope installation
I tried to update the numba and use the command "pip list" to get numba version is 0.53.1 and the numpy version is 1.21.1. But still do not resolve the error. I have uninstalled the numpy version 1.21.1 and change it to numpy version 1.20.3 but the error remains.
I have resolved this issue by uninstalled all version of numpy that present on my system. I then create a new virtual environment. I start install the package stereoscope including all required packages on this virtual environment. This way there will be no crush between these installation and my computer system.
Related
I am currently trying to run a program with Scipy, and I want to use the load_npz module.
Whenever I tried to run it, the compiler would say that that module doesn't exist.
I ran scipy.__version__ and got 0.13.0b1, which makes sense as to why it couldn't find the module as it doesn't exist in that version, but I am confused as I have 1.5.2 installed in both pip and brew yet it keeps defaulting to the oldest version which is very frustrating.
Does anybody know how to get rid of this version? I have tried uninstalling from pip and brew, along with finding the path of the imported scipy with the outdated version yet it still is causing issues.
I do have a lot of packages installed (numpy, matplotlib, etc.) so could it be a dependency that keeps reinstalling an old version?
Strangely, even if I delete scipy from both brew and pip, it will still show the old version but throw an error on a different local file that also uses scipy saying the module does not exist (which is expected as I deleted it).
write this python to find out the location of the imported scipy
import scipy
print(scipy.__file__)
I figured it out, I just deleted all my possible scipy locations and then just downloaded Anaconda and I'm using that as my python interpreter.
I'm getting this error message when loading Keras Original error was: No module named 'numpy.core._multiarray_umath'. I'm seen a number of other posts on here trying to solve this issue, but what has worked for them in the past is not working for me.
I've uninstalled and reinstalled Python, Anaconda, and Numpy but still nothing.
Numpy is version 1.16.2
Anaconda3 is versin 3.7.3 64 bit
Does anyone have suggestions how to get around this? My computer did a system update yesterday and since then many things have been broken. I thought doing fresh installs of Anaconda would solve this but it hasn't
This seems to be a bug on numpy version 1.16, as a work around, you can install numpy 1.15.
pip uninstall numpy
pip install 'numpy=1.15'
I signed up for a statistics udemy course which uses jupyter running the stock numpy package out of anaconda.
Numpy is working when I run python 3.4.4 in pycharm, but it will not work in either anaconda2 nor anaconda3.. this makes no sense because numpy comes stock as part of the anaconda library.
When I try importing numpy in jupyter, running a local instance of a python 2 script, I get this:
Thinking I could sidestep the error using a IDE, I tried pycharm and I got this:
Numpy is part of the anaconda default library which I'm running, so I checked and made sure the numpy package was there via the Anaconda Prompt using 'conda list'...
Why won't it import successfully?
Before I uninstall and reinstall everything, does anyone have any ideas?
Yayyyy. I figured it out. So I had several different python versions before I was running python through anaconda/jupyter. As a result, the tethering in-between the additional package libraries to the version of python running was shifty. For example, I may have had numpy working configured to 3.4 but not 2.7..
anyways, to break down the steps I took, I uninstalled all instances of python (both anaconda and normal versions). Then I deleted the old 3.4 libraries from my C drive. Then I installed anaconda 2.7.11 again, tested importing numpy and got the same error. Then I thought to myself, what if the packages are installed separate from the python library and their configuration didn't get reset via the reinstall.. so via the anaconda prompt I typed:
pip uninstall numpy
which removed the package I was having trouble with. and then :
pip install numpy
which downloaded and reset a whole new instance of the package. Then I tested importing numpy in both the anaconda prompt and jupyter = both worked.
I'm very happy that this ended up working out as I can continue on as planned. For anyone else who experiences a similar problem, I would try uninstalling, then reinstalling the problem causing package via pip commands - this step seemed to have the most impact on fixing the problem. Then if that doesn't work proceed to uninstall and reinstall the environments in intervals.
You can try using the following command:
pip install numpy --upgrade
This will uninstall old installed version of numpy and install a new version. This command solved my issue.
try activating you base conda environment before starting jupyter.
>activate root
>jupyter notebook
I am trying to use the One Million Song Dataset, for this i had to install python tables, numpy, cython, hdf5, numexpr, and so.
Yesterday i managed to install all i needed, and after having some troubles with hdf5, i downloaded the precompiled binary packages and saved them in my /bin folder, and the respective libraries in /lib , after that i tested this python script : http://labrosa.ee.columbia.edu/millionsong/sites/default/files/tutorial1.py.txt
and it worked fine, to be clear the way i made it work was to first run the script and start installing the needed dependencies, but today i restarted my laptop and it didn't work, now it throws me this error on the console :
python2.7 script.py
returns :
import numpy as np # get it at: http://numpy.scipy.org/
from . import random
from .mtrand import *
ImportError: /home/francisco/.local/lib/python2.7/site-packages/numpy/random/mtrand.so: undefined symbol: PyFPE_jbuf
seems to me that there is a missing variable in such file, my guess is that the script is looking for the numpy library in the wrong place, since i made so many failed installations maybe i broke something and it only worked out because it was loaded in the temporal memory of the computer.
I tried installing Anaconda, and i created a new environment and installed the packaged with the anaconda package manager, and even thought i listed all packaged and it returns :
# packages in environment at /home/francisco/anaconda2/envs/Music:
#
biopython 1.66 np110py27_0
cython 0.23.4 <pip>
hdf5 1.8.15.1 2
mkl 11.3.1 0
numexpr 2.5 np110py27_0
numpy 1.10.4 py27_1
openssl 1.0.2g 0
pillow 3.1.1 <pip>
pip 8.1.1 py27_0
pytables 3.2.2 np110py27_1
python 2.7.11 0
python-ldap 2.4.25 <pip>
readline 6.2 2
reportlab 3.3.0 <pip>
requirements 0.1 <pip>
setuptools 20.3 py27_0
sqlite 3.9.2 0
tables 3.2.2 <pip>
tk 8.5.18 0
wheel 0.29.0 py27_0
zlib 1.2.8 0
i still get the same error. I really need help and don't know what else to try. Thanks.
I had the same problem, probably you have installed numpy without Anaconda, so there is a conflict because of this, which numpy to use: that one installed with pip or with conda. When I removed non-Anaconda numpy, error gone.
pip uninstall numpy
For cython users:
This post was helpful. The post explains, that there is some flag (--with-fpectl), which is either set during the compilation of cpython or not. When a library has been compiled using a cpython without that flag, it is incompatible to a version with that flag being set. This effect does only show up when you use cython, as numpy itself does not use this extension.
As further stated in that post, my Ubuntu 16.04 has been created with this flag and Conda without it. For me, it was specifically the module hmmlearn throwing the undefined symbol error. This must be the case because it was shipped by Ubuntu with the flag being set and not by anaconda. So I uninstalled hmmlearn and manually installed it anew from sourcescode (Anaconda, unfortunately, does not offer hmmlearn). --> Works!
irony at it's best, i restarted my laptop without doing nothing, and it worked. Can't understand why.
I agree with previous posts that this seems to be caused by having multiple versions of numpy installed. For me, it wasn't enough to just use pip, as I also had multiple versions of pip installed.
Specifying the specific pip solved the problem:
/usr/bin/pip3 uninstall numpy
Initially, I installed cython using system /usr/bin/pip and anconda pip. I uninstalled system cython using system pip and reinstalled using
conda install cython. Works now.
First remove numpy from /usr/local/lib/python2.7/dist-packages/numpy-1.11.0-py2.7-linux-x86_64.egg
and then use the following command
sudo pip install numpy scipy
I had solve this error in my case.
I ran into this problem in a particular situation. Using Anaconda (3 I think) I was creating a new environment. Previously I had created a py3 env with numpy, Not sure if related. But when creating my new py2.7 environment I went to install a particular package Ta-lib via pip, but then had this same Question's import error relating to numpy for the particular case of Ta-lib.
From this post Gaurav suggested the use of pip flag --no-cache-dir to ensure a rebuild during install of numpy. I uninstalled my Ta-lib and numpy and then reinstalled them with this flag via pip and everything worked great.
Somehow I managed to break a working numpy library (I tried to install some optimization libraries).
If I run import numpy in ipython then I get ImportError: libblas.so.3gf: wrong ELF class: ELFCLASS32.
Reinstallation of numpy does not help (using sudo-apt get remove/install).
I see that the problem is libblas is 32bit version. I did not find 64 version in synaptic package manager.
Another confusing part is, ipython says that error is in
`/home/andrey/.local/lib/python2.7/site-packages/numpy/linalg/linalg.py`
but when I delete numpy, this folder still exists.
Do you know how can I fix it?
~/.local/lib/python2.7 is the per-user installation directory, of course you cannot uninstall numpy from there using apt-get. As numpy there is apparently 64bit, it requires 64bit libs so you need to install 64bit libblas on your system.