Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

I have installed Anconda promt in my D drive and when i try opening the jupyter notebook its not able to open. I think it is fetching from C drive. And it is throwing me this error:

(base) C:\Users\YEV>jupyter notebook --notebook-dir=D:\DataScience\Anaconda

Traceback (most recent call last):

  File "D:\DataScience\Anaconda\Scripts\jupyter-notebook-script.py", line 6, in <module>

    from notebook.notebookapp import main

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\notebook\notebookapp.py", line 47, in <module>

    from zmq.eventloop import ioloop

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\__init__.py", line 47, in <module>

    from zmq import backend

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 40, in <module>

    reraise(*exc_info)

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise

    raise value

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 27, in <module>

    _ns = select_backend(first)

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\backend\select.py", line 28, in select_backend

    mod = __import__(name, fromlist=public_api)

  File "C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>

    from . import (constants, error, message, context,

ImportError: cannot import name 'constants' from 'zmq.backend.cython' (C:\Users\YEV\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py)

When I track back and check, some files are been stored in my C drive and some in D drive. So I deleted all the files in C drive

base) C:\Users\YEV>jupyter --paths

config:

    C:\Users\YEV\.jupyter

    D:\DataScience\Anaconda\etc\jupyter

    C:\ProgramData\jupyter

data:

    C:\Users\YEV\AppData\Roaming\jupyter

    D:\DataScience\Anaconda\share\jupyter

    C:\ProgramData\jupyter

runtime:

    C:\Users\YEV\AppData\Roaming\jupyter\runtime

How can I fix it?

1 Answer

0 votes
by (36.8k points)

When you install anaconda by default python will also get installed. You can install the packages of python by using the anaconda prompt and given the pip command.

when you delete the $User and $directory will also get deleted. So you need to reinstall it again.

If you are a beginner and want to know more about Data Science the do check out the Data Science course

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...