LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2020, 04:20 PM   #1
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Rep: Reputation: Disabled
Question Installing Anaconda on Mint 19.3


So near and yet so far....
I have installed the bash file, added the PATH, run Anaconda-Navigator and the installation process has started with the green "snake" icon. It gets to the point when the text on the snake is "Loading Applications..." and then the process hangs. The following text is the last visible in the terminal at this point.

File "/home/david/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py", line 168, in _find_linux_install_dir
if DISTRO_NAME in ['ubuntu', 'debian']:
UnboundLocalError: local variable 'DISTRO_NAME' referenced before assignment


If anyone can shed some light on this issue, I would be most grateful.
Thank you in anticipation
David R.

Hardware: Dell Inspiron 15R
Op Sys: Mint 19.3 dual booting with Windows 10
 
Old 03-16-2020, 06:19 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I don't know if it is the cause, but Mint 19.3 runs Python 3.6, not Python 3.7. You can install Python 3.7 on Mint but use altinstall (e.g. see https://gist.github.com/dnavarrom/67...c5c8ce6653e0dd but note that 3.7 is now at 3.7.7) so that you leave the default Python alone.

Disclaimer: I have never done this. Use TimeShift to make a snapshot of your system before attempting if you are at all unsure.

Last edited by hydrurga; 03-16-2020 at 06:21 PM.
 
Old 03-17-2020, 04:05 AM   #3
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
OK thank you. I will give that some thought. I would have imagined (perhaps naively) that Anaconda would simple update the version of Python which comes with Mint, or install it alongside the 3.6 version. Is that not your understanding of the process?
Best regards
David
 
Old 03-17-2020, 05:23 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by David@ROOTT.co.uk View Post
OK thank you. I will give that some thought. I would have imagined (perhaps naively) that Anaconda would simple update the version of Python which comes with Mint, or install it alongside the 3.6 version. Is that not your understanding of the process?
Best regards
David
No, Anaconda wouldn't do that, in my opinion. It would assume that you are installing it into a Python 3.7 environment which you have pre-prepared for it. It most certainly wouldn't update the version of Python which comes with Mint - several of Mint's packages are dependent on the version of Python that is provided by default, i.e. 3.6, and could encounter difficulties if this were updated out of its control. That is why using a technique to run both versions side by side is the way to go. Or, use a distro that has 3.7 as its default version of Python. Or, set up a virtual machine with such a distro or a distro which has its default version and 3.7 installed side-by-side.

Of course, that might not be what's causing your issue.

Edit: If I were you, I would treat this as a learning experience, make a snapshot/backup of your system and go for side-by-side Python versions following instructions found on the web. See how you go and report back.

Last edited by hydrurga; 03-17-2020 at 05:27 AM.
 
Old 03-17-2020, 05:52 AM   #5
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Right, thank you. I will use the url you provided in your first response to install Python 3.7.7 alongside the 3.6 version and then try the Anaconda process again.
Will let you know if it works...
Best regards
David
 
Old 03-17-2020, 07:31 AM   #6
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Well, 3.7.7 installed ok. I rebooted and started anaconda-navigator, but the process hung as before.
There is no need to re-download the Anaconda ".sh" file is there to start the whole process anew?
Best regards
David
 
Old 03-17-2020, 10:59 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by David@ROOTT.co.uk View Post
Well, 3.7.7 installed ok. I rebooted and started anaconda-navigator, but the process hung as before.
There is no need to re-download the Anaconda ".sh" file is there to start the whole process anew?
Best regards
David
Your best bet would probably be to delete or roll back everything you have done so far re: Anaconda (i.e. remove it from your system) and start afresh.

An alternative approach. A quick search on the internet returns the following page https://docs.anaconda.com/anaconda/p...s/oldpkglists/ which suggests that Anaconda versions for Python 3.6 extended up until Anaconda 2019.07. You should therefore consider downloading and using Anaconda 2019.07 (from https://repo.continuum.io/archive/ - Anaconda 3) - that will mean that you don't need to install 3.7 on your machine after all. This appears to be one of Anaconda's recommended solutions. I would suggest that if you decide to do this, you first roll your machine back to the snapshot you made before you did the altinstall of Python 3.7, just to keep things nice and simple/clean.

You might find that 2019.10 also does the trick, but I haven't yet found confirmation of that.

Last edited by hydrurga; 03-17-2020 at 11:02 AM.
 
1 members found this post helpful.
Old 03-17-2020, 11:50 AM   #8
David@ROOTT.co.uk
LQ Newbie
 
Registered: Mar 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Brilliant. It worked like a charm. I have so far tested Spyder and Jupyter and both seem to be working. Spyder says its working with Python 3.7, but I am past caring about details like that, to be honest.
Thank you very much indeed for all the help in sorting this out. I could not have managed this on my own.
Best regards
David
 
Old 03-17-2020, 12:26 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by David@ROOTT.co.uk View Post
Brilliant. It worked like a charm. I have so far tested Spyder and Jupyter and both seem to be working. Spyder says its working with Python 3.7, but I am past caring about details like that, to be honest.
Thank you very much indeed for all the help in sorting this out. I could not have managed this on my own.
Best regards
David
Excellent. Enjoy!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to specify anaconda-ks.cfg file when installing? veeruk101 Linux - Newbie 6 10-06-2019 02:54 PM
how to install Anaconda distribution on linux Mint? bjdluna Linux - Newbie 3 04-19-2019 12:48 AM
LCD goes black when installing w/ Anaconda Skillz Linux - Desktop 1 06-10-2009 02:38 PM
fc6-3 not installing, hangs `Welcome to Fedora' never proceeds to anaconda. 3x DL BtT digital8doug Fedora 0 10-02-2006 02:02 PM
Installing RH8.0 and specifying text mode but still wants to try and start anaconda? severedhead Linux - Software 2 10-17-2002 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration