I installed the latest version of Anaconda on my Windows 10. After installing i tried to launch it but it wouldn't launch even after trying several times. I also tried to launch the jupyter notebook and spider shortcut that was created but even that didn't work. So I tried to run it using the terminal and this is the error I recieved:
UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
Traceback (most recent call last):
File "C:\Users\capta\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\capta\anaconda3\lib\site-packages\notebook\notebookapp.py", line 49, in <module>
from zmq.eventloop import ioloop
File "C:\Users\capta\anaconda3\lib\site-packages\zmq\__init__.py", line 47, in <module>
from zmq import backend
File "C:\Users\capta\anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\capta\anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\capta\anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\capta\anaconda3\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\capta\anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
I also encountered this problem after I uninstalled the Microsoft Visual Studio C++ redistributable. It fixed (DLL error) after I installed Visual Studio 2015, 2017, and 2019.
You can find it on The latest supported Visual C++ downloads
Related
I am totally new to Python/Jupyter notebook.
Using Windows 11. I installed latest version python Python 3.11.1. Also latest Anaconda - conda 22.9.0.
My jupyter notebook (installed by anaconda) does not start from command line:
jupyter notebook
Traceback (most recent call last):
File "C:\apps\anaconda\Scripts\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main
File "C:\apps\anaconda\lib\site-packages\notebook\notebookapp.py", line 77, in from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
File "C:\apps\anaconda\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 18, in
from jupyter_client.session import Session
File "C:\apps\anaconda\lib\site-packages\jupyter_client_init_.py", line 8, in from .asynchronous import AsyncKernelClient # noqa
File "C:\apps\anaconda\lib\site-packages\jupyter_client\asynchronous_init_.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\apps\anaconda\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\apps\anaconda\lib\site-packages\jupyter_client\channels.py", line 12, in import zmq.asyncio
File "C:\apps\anaconda\lib\site-packages\zmq_init_.py", line 103, in from zmq import backend
File "C:\apps\anaconda\lib\site-packages\zmq\backend_init_.py", line 31, in raise original_error from None
File "C:\apps\anaconda\lib\site-packages\zmq\backend_init_.py", line 26, in ns = select_backend(first)
File "C:\apps\anaconda\lib\site-packages\zmq\backend\select.py", line 31, in select_backend mod = import_module(name)
File "C:\apps\anaconda\lib\importlib_init.py", line 127, in import_module return _bootstrap.gcd_import(name[level:], package, level)
File "C:\apps\anaconda\lib\site-packages\zmq\backend\cython_init.py", line 6, in
from . import (ImportError: DLL load failed while importing _device: The specified module could not be found.
Conda documentation states "Anaconda supports Python 3.7, 3.8, 3.9 and 3.10. The current default is Python 3.9."
Should I just downgrade my python to 3.9 or 3.10 (I dont care) ?? Any other work arounds?
Updates
Could open the jupyter notebook from the conda prompt. Not stated using it yet. So lets see. If python compatibility issues need to be resolved - need to figure it out.
But, cant start the anaconda-navigator. When I try start from windows start menu - does nothing. From Conda prompt: I get the flwg error on the prompt: >anaconda-navigator Traceback (most recent call last): File "C:\apps\anaconda\Scripts\anaconda-navigator-script.py", line 6, in <module> from anaconda_navigator.app.main import main File "C:\apps\anaconda\lib\site-packages\anaconda_navigator\app\main.py", line 19, in <module> from anaconda_navigator.app.start import start_app File "C:\apps\anaconda\lib\site-packages\anaconda_navigator\app\start.py", line 15, in <module> from qtpy.QtCore import QCoreApplication, QEvent, QObject, Qt # pylint: disable=no-name-in-module File "C:\apps\anaconda\lib\site-packages\qtpy\QtCore.py", line 15, in <module> from PyQt5.QtCore import * ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.
I ran jupyter notebook and I'm getting the following error. Please help!
I checked the conda version, it's working fine. I added paths in the environment variables. I don't know why it isn't working. Previously it worked fine I recently uninstalled it and installed it again.
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\Admin\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 51, in <module>
from zmq.eventloop import ioloop
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\Admin\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
getting this error,
please help!
There can be an issue with the 64bit version of Anaconda, Try these steps:
Install Anaconda 32 Bit for windows.
Add \Anaconda3 and \Anaconda3\Script to Path in Environment variables.
Open Anaconda Prompt and Create an Environment and activate it.
Once you activate the Environment, you will into it. Then write the command JUPYTER
NOTEBOOK, it should run on your Browser.
If that dose not work you can go back and install a bit older version of Anaconda and try doing the same.
Here for more help (:
Getting below error when trying to launch jupyter notebook. Any help to address this error is appreciated.
_cffi_ext.c C:\Users\emathew004\anaconda3\lib\site-packages\zmq\backend\cffi__pycache___cffi_ext.c(213):
fatal error C1083: Cannot open include file: 'sys/un.h': No such file
or directory Traceback (most recent call last): File
"C:\Users\emathew004\anaconda3\Scripts\jupyter-notebook-script.py",
line 6, in
from notebook.notebookapp import main File "C:\Users\emathew004\anaconda3\lib\site-packages\notebook\notebookapp.py",
line 47, in
from zmq.eventloop import ioloop File "C:\Users\emathew004\anaconda3\lib\site-packages\zmq__init__.py",
line 47, in
from zmq import backend File "C:\Users\emathew004\anaconda3\lib\site-packages\zmq\backend__init__.py",
line 40, in
reraise(*exc_info) File "C:\Users\emathew004\anaconda3\lib\site-packages\zmq\utils\sixcerpt.py",
line 34, in reraise
raise value File "C:\Users\emathew004\anaconda3\lib\site-packages\zmq\backend__init__.py",
line 27, in
_ns = select_backend(first) File "C:\Users\emathew004\anaconda3\lib\site-packages\zmq\backend\select.py",
line 28, in select_backend
mod = import(name, fromlist=public_api) File "C:\Users\emathew004\anaconda3\lib\site-packages\zmq\backend\cython__init__.py",
line 6, in
from . import (constants, error, message, context, ImportError: DLL load failed: The specified module could not be found
I've also had this problem, which I solved as follows.
conda uninstall pyzmq (uninstall pyzmq)
conda install pyzmq (reinstall pyzmq)
conda install jupyter (reinstall jupyter)
You need a corresponding version of visual c++ redistribution.
Getting the following error on Win10 when trying to connect spyder to the remote kernel:
Traceback (most recent call last):
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\transport.py", line 2010, in run
self._handler_table[ptype](self, m)
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\transport.py", line 2126, in _negotiate_keys
self.kex_engine.start_kex()
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py", line 32, in start_kex
self._generate_key_pair()
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py", line 53, in _generate_key_pair
self.P = ec.generate_private_key(self.curve, default_backend())
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\backends\__init__.py", line 15, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 62, in <module>
from cryptography.hazmat.bindings.openssl import binding
File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 14, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed: The specified procedure could not be found.
*** Failed to connect to 10.144.20.72:22: ImportError('DLL load failed: The specified procedure could not be found.')
Since I had the same issue I'm doing some Necromancy on this question:
My Solution is more of a workaround then anything else. I assume you are using anaconda since you mention spyder. My problem seems to have arisen form using pip to install pysftp into the anaconda environment. I had to uninstall anaconda, revert to my original python environment and there it worked without any problems.
Since I like spyder I installed it via pip into that environment...works so far
I just closed my spyder IDE on win7 64bit 64bit python2.7 after a long session.
during that last session, I had also installed a couple of new libraries via conda install. maybe that threw things off?
now when I try to start spyder again, the spyder splash screen appears briefly but then spyder doesn't open. if I try to start spyder from the command line, I get the following error:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jlarsch>conda install spyder
Warning: could not import binstar_client (A 0.7-series setuptools cannot be inst
alled with distribute. Found one at c:\users\jlarsch\appdata\local\continuum\ana
conda\lib\site-packages\setuptools-20.7.0-py2.7.egg)Fetching package metadata: .
...
Solving package specifications: .........
# All requested packages already installed.
# packages in environment at C:\Users\jlarsch\AppData\Local\Continuum\Anaconda:
#
spyder 2.3.9 py27_0
C:\Users\jlarsch>spyder
Traceback (most recent call last):
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\Scripts\spyder-script.
py", line 2, in <module>
start_app.main()
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\spyd
erlib\start_app.py", line 114, in main
from spyderlib import spyder
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\spyd
erlib\spyder.py", line 137, in <module>
from spyderlib.ipythonconfig import IPYTHON_QT_INSTALLED
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\spyd
erlib\ipythonconfig.py", line 24, in <module>
required_version=IPYTHON_REQVER)
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\spyd
erlib\dependencies.py", line 70, in add
installed_version)]
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\spyd
erlib\dependencies.py", line 32, in __init__
self.installed_version = programs.get_module_version(modname)
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\spyd
erlib\utils\programs.py", line 238, in get_module_version
mod = __import__(module_name)
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\IPyt
hon\__init__.py", line 48, in <module>
from .terminal.embed import embed
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\IPyt
hon\terminal\embed.py", line 16, in <module>
from IPython.core.interactiveshell import DummyMod
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\IPyt
hon\core\interactiveshell.py", line 31, in <module>
from pickleshare import PickleShareDB
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\pick
leshare.py", line 41, in <module>
from path import path as Path
File "C:\Users\jlarsch\AppData\Local\Continuum\Anaconda\lib\site-packages\path
.py", line 126, in <module>
except pkg_resources.DistributionNotFound:
NameError: name 'pkg_resources' is not defined
seems related to this issue but I don't understand how I might be able to fix this on windows?
try this download setuptools from here and install.