question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Anaconda doesn't work anymore

See original GitHub issue

I’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:
    1. 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.

    2. 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 or make 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:closed
  • Created 5 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
rgommerscommented, Feb 22, 2019
  • Can you give us the output of conda list, which pip and pip list?
  • Can you give us the contents of your conda-meta/history file? If you were using a conda environment, it will be in anaconda3/envs/<envname>/conda-meta/ and otherwise in anaconda3/conda-meta/? (*if it’s a large file, please put it in a gist and link it80

To try and fix:

pip uninstall numpy
conda install numpy

As a rule, never install numpy with pip when you’re using conda.

0reactions
mattipcommented, Mar 6, 2019

Thanks for the update. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — Anaconda documentation
Solution¶. If start menu shortcuts are missing, Microsoft recommends rebooting your computer or restarting Windows Explorer. If that doesn't work, clear ...
Read more >
Anaconda Navigator won't launch (windows 10) - Stack Overflow
Update to the latest conda and latest navigator will resolve this issue. Open the Anaconda Prompt and type.
Read more >
Anaconda navigator not opening on Windows 10 - net2
Anaconda navigator won't launch. Sometimes you will face the issue in which the Anaconda navigator will not be able to start. In order...
Read more >
How to Fix Anaconda Doesn't Launch Issue - Python In Office
After the installation when I tried to open the Anaconda Navigator, something weird happened. A black screen flashes and then disappeared ...
Read more >
Anaconda Prompt Doesn't work after installation
After installing Anaconda via the VS Installer, I have a `Anaconda Prompt` in the start menu. However, that does not work after launching...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found