Anaconda3-2019.03-Linux-x86_64

I have an issue with Anaconda running on Tumbleweed.
Even after upgrading to the latest Tumbleweed today, and remove Anaconda and installed the latest version,
and ~/.bashrc is updated, still cannot run jupyter notebook.

shahram@EWS:~> anaconda-navigator
If ‘anaconda-navigator’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf anaconda-navigator
shahram@EWS:~> conda init
no change /home/shahram/anaconda3/condabin/conda
no change /home/shahram/anaconda3/bin/conda
no change /home/shahram/anaconda3/bin/conda-env
no change /home/shahram/anaconda3/bin/activate
no change /home/shahram/anaconda3/bin/deactivate
no change /home/shahram/anaconda3/etc/profile.d/conda.sh
no change /home/shahram/anaconda3/etc/fish/conf.d/conda.fish
no change /home/shahram/anaconda3/shell/condabin/Conda.psm1
no change /home/shahram/anaconda3/shell/condabin/conda-hook.ps1
no change /home/shahram/anaconda3/lib/python3.7/site-packages/xonsh/conda.xsh
no change /home/shahram/anaconda3/etc/profile.d/conda.csh
no change /home/shahram/.bashrc
No action taken.
shahram@EWS:~> jupyter notebook
If ‘jupyter’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf jupyter
shahram@EWS:~>

When a file or app can’t be found, one first step is to use find or locate to verify the file exists on your system.

Assuming your app is found,
Then the problem is most likely your path, run the following

echo $PATH

You should see a path your your Anaconda at <the beginning> of your $PATH, not in the middle or end.

The following is the installation documentation for Anaconda 2, I don’t think Anaconda 3 should be any different

https://docs.anaconda.com/anaconda/install/linux/

TSU

here is echo $PATH :

shahram@EWS:~> echo $PATH
/home/shahram/anaconda3/condabin:/home/shahram/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/snap/bin
shahram@EWS:~>

I have followed the Anaconda installation procedure as it shows on document but no success. I did the same on ubuntu and works fine.
one thing that I have realized is most Python packages are available on OSS reop and can be installed by YaST. (I have installed them even jupyter package and works fine) but I don’t like this method. even pip3 install works fine as usual and have no problem. but I need Anaconda which is not working :frowning:

Looks OK.

Only thing I can think of is that maybe you’re trying to run your Anaconda app in a “full root” console… ie. using “su”
When you do that, your User path changes to /root/* instead of /home/shahram/.
So, instead of “su” you should either sudo or “su-” when you want to run an Anaconda app with elevated permissions.

TSU

On 4/19/19 7:46 PM, tsu2 wrote:
>
> Looks OK.
>
> Only thing I can think of is that maybe you’re trying to run your
> Anaconda app in a “full root” console… ie. using “su”
> When you do that, your User path changes to /root/* instead of
> /home/shahram/.
> So, instead of “su” you should either sudo or “su-” when you want to run
> an Anaconda app with elevated permissions.
>
> TSU
>
>

Actually;

su = change user ID to root retaining the current users env

su - = change user ID to root using root’s env


Ken
unix since 1986
S.u.S.E.-openSUSE since 1998

Non of above

su
or
su -
works.
I have installed jupyter separately and was working fine.This is really weird!

First verify that the following points to a valid location, your Anaconda executables can be found in the location or a subdirectory of the location

/home/shahram/anaconda3/condabin/

Then,
Try executing a test executable specifying the full, fixed path, not assuming that the $PATH will automatically find the executable.

And,
Try using “sudo” to elevate your permissions.

It’s been awhile, I’m also wondering if a forward slash that is missing from the “condabin” in your $PATH makes a difference(note I added it in the above fixed path).

Also, use “find” or “locate” to determine your “anaconda-navigator” actually is, and why your conda init may not be looking in the right place ($PATH usually should be siufficient to find it but maybe there is a reason why it can’t be found in this case)

TSU

This is might be the reason actually!
see the result :

shahram@EWS:~> locate anaconda-navigator
/home/shahram/.anaconda/navigator/anaconda-navigator.ini

To install correctly anaconda navigator on tumbleweed, follow the below steps.

Steps For Installing Anaconda

Step 1: Update Local Package Manager
Step 2: Download the Latest Version of Anaconda
Step 3: Verify the Download Checksum
Step 4: Run Anaconda Installation Script
(Optional) Step 5: Install VSCode Editor
Step 6: Activate and Test Installation

To update Anaconda on Ubuntu, start by updating the conda utility:

conda update conda

Next, run the Anaconda package update command:

conda update anaconda

I hope this helps.

Best regards,