Error opening anaconda, spyder, jupyter while opening

21 views
Skip to first unread message

msv [manikanta srivishnu]

unread,
Jan 23, 2021, 2:46:41 PMJan 23
to Anaconda - Public
anaconda is not opening directly by icon click , its opening through anaconda prompt.
and while launching jupyter and spyder error was showing, and i tried uninstalling and installing the anaconda, but same result.

the errors are

Traceback (most recent call last):
File "C:\Users\manik\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\manik\anaconda3\lib\site-packages\notebook\notebookapp.py", line 51, in
from zmq.eventloop import ioloop
File "C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\__init__.py", line 50, in
from zmq import backend
File "C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line 40, in
reraise(*exc_info)
File "C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line 27, in
_ns = select_backend(first)
File "C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\backend\cython\__init__.py", line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\manik\AppData\Roaming\Python\Python38\site-packages\zmq\backend\cython\__init__.py)



can you please guide me step by step

David Kun

unread,
Jan 24, 2021, 11:43:52 PMJan 24
to Anaconda - Public, manikanta...@gmail.com
One option is to create an Anaconda environment and install spyder & jupyter notebook into this environment.  This can be done with the following commands using the Anaconda prompt

# create a conda environment with python 3.8
conda create -n test_env python=3.8 -y
conda activate test_env

# install jupyterlab & register this environment with jupyter notebook
conda install -c conda-forge jupyterlab -y
python -m ipykernel install --user --name=test_env
conda install -c conda-forge spyder -y

# starts jupyter lab with notebook
jupyter-lab  
# starts spyder
spyder


Reply all
Reply to author
Forward
0 new messages