problem opening jupyter notebook on debian 10

f33dm3bits

Gold Member
Gold Supporter
Credits
7,679
Just remove /opt/anaconda3, then run the anacona installer als normal user.
 


f33dm3bits

Gold Member
Gold Supporter
Credits
7,679
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.
 

f33dm3bits

Gold Member
Gold Supporter
Credits
7,679
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
 

raman kumar

Member
Credits
1,221
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 kumar

Member
Credits
1,221
[email protected]:~$ 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.
 

f33dm3bits

Gold Member
Gold Supporter
Credits
7,679
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 kumar

Member
Credits
1,221
[email protected]:~$ jupyter-notebook
bash: jupyter-notebook: command not found
[email protected]:~$ su
Password:
[email protected]:/home/raman# jupyter-notebook
bash: jupyter-notebook: command not found
[email protected]:/home/raman# anaconda-navigator
bash: anaconda-navigator: command not found
[email protected]:/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.
>>>
 

f33dm3bits

Gold Member
Gold Supporter
Credits
7,679
Looks like you forgot to activate anaconda, since your shell should look like this:
(base) [[email protected] ~]$

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.
 

f33dm3bits

Gold Member
Gold Supporter
Credits
7,679
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
 

raman kumar

Member
Credits
1,221
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.

[email protected]:~$ spyder
bash: spyder: command not found
[email protected]:~$ anaconda-navigator
bash: anaconda-navigator: command not found
[email protected]:~$ jupyter-notebook
bash: jupyter-notebook: command not found
[email protected]:~$ spyder
bash: spyder: command not found
[email protected]:~$ 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
>>>
[email protected]:~$ have t
(base) [email protected]:~$ anaconda-navigator
spyder
 
Last edited:



Latest posts

Top