problem opening jupyter notebook on debian 10

Just remove /opt/anaconda3, then run the anacona installer als normal user.
 


i have no permission to remove /opt/anaconda3 file . as there is no option to cut the file
You need to do it as root since the directory structure is owned by the root user.
 
please tell me command to do so. as i have tried this few time unsuccessfully
Either switch to root user in your terminal and then rm -rf /opt/anaconda3 or use sudo: sudo rm -rf /opt/anaconda3
 
yes now opt directory is empty . now i should install anaconda again. how will i chose location
 
Anaconda3 will now be installed into this location:
/home/raman/anaconda3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

should i proceed or change location to install correctly
 
raman@raman:~$ conda init
no change /home/raman/anaconda3/condabin/conda
no change /home/raman/anaconda3/bin/conda
no change /home/raman/anaconda3/bin/conda-env
no change /home/raman/anaconda3/bin/activate
no change /home/raman/anaconda3/bin/deactivate
no change /home/raman/anaconda3/etc/profile.d/conda.sh
no change /home/raman/anaconda3/etc/fish/conf.d/conda.fish
no change /home/raman/anaconda3/shell/condabin/Conda.psm1
no change /home/raman/anaconda3/shell/condabin/conda-hook.ps1
no change /home/raman/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change /home/raman/anaconda3/etc/profile.d/conda.csh
no change /home/raman/.bashrc
No action taken.
 
on installing again it is working well ,i could not understand why it was giving problem earlier
 
again it is giving problem
I can't read minds, so you are going to have to be a bit more specific. When you run the installer you can choose whatever location you would like to install or you can just keep the default which is going to be /home/$USER/anaconda3. Instead of launching anaconda-navigator, you can just also try launching jupyter-notebook as a command.
 
raman@raman:~$ jupyter-notebook
bash: jupyter-notebook: command not found
raman@raman:~$ su
Password:
root@raman:/home/raman# jupyter-notebook
bash: jupyter-notebook: command not found
root@raman:/home/raman# anaconda-navigator
bash: anaconda-navigator: command not found
root@raman:/home/raman# python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
 
Looks like you forgot to activate anaconda, since your shell should look like this:
(base) [tux@localhost ~]$

Try activating it:
source /opt/anaconda3/bin/activate root

Also you don't need to show how you are trying to run it as root user each time because you should only be trying to get it to run as normal user.
 
raman@raman:~$ source /opt/anaconda3/bin/activate root
bash: /opt/anaconda3/bin/activate: No such file or directory
raman@raman:~$
 
If you ran the installer als normal user so the user raman. Then it should have asked you if you wanted to install it in /home/raman/anaconda3 and not /opt/anaconda3. So when you source it you should do the default location unless you specified a different location. Try: source /home/raman/anaconda3/bin/activate root
 
sorry ,i have not installed prerequisites.but even after installing them it is not working i am using debian 10
 
yes now navigator has open and i was able to open jupyter.

raman@raman:~$ anaconda-navigator
bash: anaconda-navigator: command not found
raman@raman:~$ source /home/raman/anaconda3/bin/activate root
(base) raman@raman:~$ anaconda-navigator


2020-09-28 12:47:26,289 - ERROR download_api._download:262
HTTPSConnectionPool(host='assets-cdn.anaconda.com', port=443): Read timed out. (read timeout=5)
 
on shutting down and opening pc again i was able to open navigator but i have to type"source /home/raman/anaconda3/bin/activate root" again.

raman@raman:~$ spyder
bash: spyder: command not found
raman@raman:~$ anaconda-navigator
bash: anaconda-navigator: command not found
raman@raman:~$ jupyter-notebook
bash: jupyter-notebook: command not found
raman@raman:~$ spyder
bash: spyder: command not found
raman@raman:~$ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>>
raman@raman:~$ have t
(base) raman@raman:~$ anaconda-navigator
spyder
 
Last edited:

Members online


Top