• Register
0 votes

Problem :

When I am trying to execute jupyter notebook in the virtual environment in my Arch Linux, the below error occurred.

“Error executing Jupyter command 'notebook': [Errno 2] No such file or directory”

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.

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

It seems to me as if your installation has messed up completely. Try running below commands :

# For the Python 2
pip install --upgrade --force-reinstall --no-cache-dir jupyter
# For the Python 3
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

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


As both your pip and pip 3.6 were installed and the pip command was failing:

pip install --upgrade --force-reinstall jupyter

So I tried to use the pip3.6 command as below:

pip3.6 install --upgrade --force-reinstall jupyter

And the above pip3.6 command just worked for me. Running the jupyter notebook also worked after the installation.

Hope my solution helps you in resolving all your issues.

9 7 4
38,600 points

Related questions

0 votes
1 answer 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 ( ... .py", line 150, in _execvp raise OSError('%r not found' % cmd, errno.ENOENT) OSError: [Errno 'jupyter-notebook' not found] 2
asked Dec 19, 2019 alecxe 7.5k points
0 votes
2 answers 86 views
Problem : I have recently installed the cuda 8.0 and cuda 9.0 in the Gpu support system. I encountered the below error while importing from the keras module. It says it is unable to load the native tensorflow runtime. I have received the error log as below: Traceback ... is, Cuda compilation tools, release 8.0, V8.0.61 Is it the clash between two cuda versions? Have anyone solved this before?
asked Feb 18, 2020 mphil 2.3k points
0 votes
1 answer 37 views
Problem: I am trying to open a CSV file but for some reason python cannot locate it. Here is my code (it's just a simple code but I cannot solve the problem): import csv with open('address.csv','r') as f: reader = csv.reader(f) for row in reader: print row
asked Jan 10 Mashhoodch 6.7k points
1 vote
1 answer 91 views
Problem: Hello Kodlogs, I just joined this forum. I found you people knowledgeable and friendly alongside. Well, I am a new python developer. Well, it could be exaggerative if I address me as a developer, I am a new student perhaps. I have to learn a lot ... The above open command producing an error of filenotfounderror: [errno 2] no such file or directory: But why? Could you identify the problem?
asked Jun 29, 2020 adamSw 11.3k points
2 votes
2 answers 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 ... “'jupyter' is not recognized as an internal or external command, operable program or batch file.” How to fix above error?
asked Feb 13, 2020 mphil 2.3k points
2 votes
1 answer 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
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 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.6K 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 167 views
I'm getting something like this. Can anyone please tell me how to fix this. C:\Users\krush\Documents\ML using Python>pip install pocketsphinx Collecting pocketsphinx Using cached pocketsphinx-0.1.3.zip Building wheels for collected packages: pocketsphinx Running setup.py bdist_wheel for pocketsphinx: started ... ------------------------- Command "C:\Users\krush\Anaconda3\python.exe -u -c "impor
asked Oct 25, 2020 psandprop 2.4k points