Anaconda doesn't work anymore
See original GitHub issueI’ve been using Anaconda environment for 1 year. Suddenly today after the installation of beatifulsoup4 with pip, i’m not able anymore to work with jupyter or ipython. If i try to import numpy or pandas or matplotlib i receive this error:
Python 3.7.2 (default, Feb 11 2019, 14:11:50) [MSC v.1915 64 bit (AMD64)]
IPython 6.5.0 – An enhanced Interactive Python. Type ‘?’ for help.:
I tried the “pip install --upgrade --force-reinstall numpy” but it didn’t work.
This message appears:
import numpy
ImportError Traceback (most recent call last) ~\Anaconda3\lib\site-packages\numpy\core_init_.py in <module>() 15 try: —> 16 from . import multiarray 17 except ImportError as exc:
~\Anaconda3\lib\site-packages\numpy\core\multiarray.py in <module>() 11 —> 12 from . import overrides 13 from . import _multiarray_umath
~\Anaconda3\lib\site-packages\numpy\core\overrides.py in <module>() 5 ----> 6 from numpy.core._multiarray_umath import ( 7 add_docstring, implement_array_function, _get_implementing_args)
ImportError: DLL load failed: Impossibile trovare il modulo specificato.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last) <ipython-input-5-d4cdadb62aa7> in <module>() ----> 1 import numpy
~\Anaconda3\lib\site-packages\numpy_init_.py in <module>() 140 from . import _distributor_init 141 –> 142 from . import core 143 from .core import * 144 from . import compat
~\Anaconda3\lib\site-packages\numpy\core_init_.py in <module>() 45 Original error was: %s 46 “”" % (sys.executable, exc) —> 47 raise ImportError(msg) 48 finally: 49 for envkey in env_added:
and then
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
_Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. Here is how to proceed:
- If you’re working with a numpy git repository, try
git clean -xdf
(removes all files not under version control) and rebuild numpy.- If you are simply trying to use the numpy version that you have installed: your installation is broken - please reinstall numpy.
- If you have already reinstalled and that did not fix the problem, then:
Check that you are using the Python you expect (you’re using C:\Users\Admin\Anaconda3\python.exe), and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy versions you’re trying to use.
If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log
Note: this error has many possible causes, so please don’t comment on an existing issue about this - open a new one instead.
Original error was: DLL load failed: Impossibile trovare il modulo specificato.
If i import sklearn…
import sklearn
ImportError: No module named ‘sklearn.__check_build._check_build’
Contents of C:\Users\Admin\Anaconda3\lib\site-packages\sklearn_check_build: setup.py check_build.cp36-win_amd64.pyd__init.py pycache
It seems that scikit-learn has not been built correctly.
If you have installed scikit-learn from source, please do not forget to build the package before using it: run
python setup.py install
ormake
in the source directory.If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (9 by maintainers)
conda list
,which pip
andpip list
?conda-meta/history
file? If you were using a conda environment, it will be inanaconda3/envs/<envname>/conda-meta/
and otherwise inanaconda3/conda-meta/
? (*if it’s a large file, please put it in a gist and link it80To try and fix:
As a rule, never install numpy with pip when you’re using conda.
Thanks for the update. Closing.