Python Forum
Running Python via Anaconda?
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running Python via Anaconda?
#13
(Oct-11-2017, 12:22 PM)gruntfutuk Wrote: . I tend to do most development in VMs or, more often these days, in containers, rather than "corrupt" my local environment.
For both Linux and Mac is pyenv great.
Let you install and switch between versions easy,and it's safe don't mess with OS python local environment.

Example run:
mint@mint ~ $ pyenv install 3.6.2
Downloading Python-3.6.2.tar.xz...
-> https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
Installing Python-3.6.2...
Installed Python-3.6.2 to /home/mint/.pyenv/versions/3.6.2
 
# Make python and pip default to 3.6.2
mint@mint ~ $ pyenv global 3.6.2

# Check what's available
mint@mint ~ $ pyenv install --list 

# Install the version you desire
mint@mint ~ $ pyenv install anaconda-x.x.x

# If just want test out Anaconda is a shell session.
pyenv shell anaconda-x.x.x

# Can always go back to system default
mint@mint ~ $ pyenv local system
mint@mint ~ $ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
mint@mint ~ $ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Reply


Messages In This Thread
Running Python via Anaconda? - by Athenaeum - Oct-10-2017, 07:13 PM
RE: Running Python via Anaconda? - by sparkz_alot - Oct-10-2017, 09:04 PM
RE: Running Python via Anaconda? - by wavic - Oct-10-2017, 09:11 PM
RE: Running Python via Anaconda? - by sparkz_alot - Oct-10-2017, 10:13 PM
RE: Running Python via Anaconda? - by Athenaeum - Oct-10-2017, 11:51 PM
RE: Running Python via Anaconda? - by Larz60+ - Oct-11-2017, 12:10 AM
RE: Running Python via Anaconda? - by Athenaeum - Oct-12-2017, 01:30 AM
RE: Running Python via Anaconda? - by snippsat - Oct-11-2017, 06:24 AM
RE: Running Python via Anaconda? - by Larz60+ - Oct-11-2017, 08:44 AM
RE: Running Python via Anaconda? - by gruntfutuk - Oct-11-2017, 12:09 PM
RE: Running Python via Anaconda? - by buran - Oct-11-2017, 12:18 PM
RE: Running Python via Anaconda? - by gruntfutuk - Oct-11-2017, 12:22 PM
RE: Running Python via Anaconda? - by sparkz_alot - Oct-11-2017, 12:18 PM
RE: Running Python via Anaconda? - by snippsat - Oct-11-2017, 01:37 PM
RE: Running Python via Anaconda? - by gruntfutuk - Oct-11-2017, 02:37 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020