• Register
0 votes
69 views

Problem :

I have recently installed my "Anaconda3-4.3.1-Windows-x86_64" in the desktop but I am facing following error when I try to run the command as "jupyter notebook" from my CMD as shown below :

 

The Detailed Error Message:

C:\Users\my pc>jupyter notebook
Traceback (most recent call last):
File "C:\Users\alecxe\AppData\Local\Continuum\Anaconda3\Scripts\jupyter-script.py", line 15, in <"module">sys.exit(jupyter_core.command.main())
File "C:\Users\alecxe\AppData\Local\Continuum\Anaconda3\lib\site-packages\jupyter_core\command.py", line 201, in main_execvp(command, sys.argv[1:]) 
File "C:\Users\alecxe \AppData\Local\Continuum\Anaconda3\lib\site-packages\jupyter_core\command.py", line 150, in _execvp raise OSError('%r not found' % cmd, errno.ENOENT)
OSError: [Errno 'jupyter-notebook' not found] 2
6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

After installing the anaconda you need to create the new environment using the below command :

conda create -n yourenvname python=x.x anaconda

After doing that just activate your environment using below command :

source activate yourenvname

Now you must install the jupyter using below command :

conda install jupyter

Finally run the jupyter using below command :

 jupyter-notebook

OR

I tried the below approach and it simply worked for me:

For Python 2 you need to run the below command :

pip install --upgrade --force-reinstall --no-cache-dir jupyter

For Python 3 you need to run the below command :

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

Above commands should reinstall everything from PyPi. It should solve your problem as I think running the pip install "ipython[notebook]" messed things up for you.

9 7 4
38,600 points

Related questions

0 votes
1 answer 763 views
763 views
Problem : When I am trying to execute jupyter notebook in the virtual environment in my Arch Linux, the below error occurred. &ldquo;Error executing Jupyter command 'notebook': [Errno 2] No such file or directory&rdquo; The python version is 3.6, and the jupyter version is 4.3.0 I have researched a lot, but I am just unable to find anything relevant to above issue.
asked Jan 3, 2020 alecxe 7.5k points
2 votes
2 answers 7.7K views
7.7K views
Problem : I am very new to Jupyter. I have already installed the Jupyter on my PC. My Configuration is as follows: Windows 10, python 3.x I used below command to install Jupyter. $ pip install jupyter The installation process completed without any issues. But ... &ldquo;'jupyter' is not recognized as an internal or external command, operable program or batch file.&rdquo; How to fix above error?
asked Feb 13, 2020 mphil 2.3k points
0 votes
1 answer 1.6K views
1.6K views
Problem : I am very new to Quartz. So whenever I try to install Quartz on my system using pip install Quartz, I face the following error. Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ... [Errno 2] No such file or directory: 'requirements.txt' I am using Mac OSX with Anaconda. Does anyone have any clue on this issue?
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 4 views
4 views
Problem: have been trying to run my python files in Git Bash but I keep getting an error and can't figure out how to fix it. My command as follows in the git bash executable python filename.py then it says "Bash.exe": python.exe: command not found I'm a windows user and I have added the path to my environment variables like so C:\Python27\python.exe;C:\Program Files\Git\bin\bash.exe
asked Jan 8 Mashhoodch 6.7k points
0 votes
1 answer 36 views
36 views
Problem Hello Kodlogs, I have Python 2.7 install on Windows machine. I am getting bash: pip: command not found error. Please help. Thanks in advance
asked Oct 28, 2020 hashq 1.1k points
2 votes
1 answer 2.6K views
2.6K views
Problem: When I try to run the below command on my command prompt: python get-pip.py It shows the following message: C:\Users\ASUS>python get-pip.py python: can't open file 'get-pip.py': [Errno 2] No such file or directory How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. Thanks in advance.
asked May 6, 2020 samhaz 5k points
0 votes
1 answer 1.4K views
1.4K views
I was creating a new project in django. Firstly I installed django in my system but when I run the command : python manage.py runserver It does not work It shows a message : python: can't open file 'manage.py': [Errno 2] No such file or directory ... django and I started a project by running the command : django-admin startproject Utility Why am I seeing this error message, do anyone know?
asked Mar 18, 2020 LizzyM 6.1k points
0 votes
1 answer 4.7K views
4.7K views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Oct 21, 2019 peterlaw 6.9k points
0 votes
1 answer 82 views
0 votes
2 answers 53 views
53 views
Hello colleagues, I really want to know How To Solve 'python' is not recognized as an internal or external command, operable program or batch file error. Thanks
asked Oct 23, 2020 psandprop 2.4k points