Python Forum
Which is best for python?Linux or windows?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Which is best for python?Linux or windows?
#14
If using pyenv installing and switching between version become seamless and simple.
It's also safe will not mess up system version.

Install python 3.6.1 and set global python to be python 3.6.1.
mint@mint ~ $ pyenv install 3.6.1
Downloading Python-3.6.1.tar.xz...
-> https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
Installing Python-3.6.1...
Installed Python-3.6.1 to /home/mint/.pyenv/versions/3.6.1

# Make it default version
mint@mint ~ $ pyenv global 3.6.1
mint@mint ~ $ python
Python 3.6.1 (default, May 25 2017, 14:44:39) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
What to use miniconda i shell session.
mint@mint ~ $ pyenv shell miniconda3-4.3.11
(miniconda3-4.3.11) mint@mint ~ $ python
Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 12:22:00) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Want to go back to OS 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.
>>> 
(Jun-14-2017, 12:01 AM)ackmondual Wrote: You can still do CLI with Windows, but I prefer using Unix.
If using cmder you get a shell which is simelar to a Unix shell.
Reply


Messages In This Thread
RE: Which is best for python?Linux or windows? - by snippsat - Jun-14-2017, 10:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python on Linux ebn852_pan 6 257 May-17-2024, 06:13 AM
Last Post: ebn852_pan
  Pandas + PIL on Linux (Python 32) Clives 3 2,222 Mar-25-2022, 07:46 PM
Last Post: snippsat
  Run Python 3 script with the same command on Windows, Linux, and macOS? ssrobins 3 2,845 Nov-15-2020, 07:32 AM
Last Post: Gribouillis
  Best compiler for windows or mac linux Shadowdevelopment 0 1,655 Jan-21-2020, 02:25 AM
Last Post: Shadowdevelopment
  how to install python on linux manchun 5 4,598 Mar-01-2018, 09:09 AM
Last Post: wavic
  many versions on python on linux Skaperen 8 5,842 Oct-17-2017, 02:22 AM
Last Post: Skaperen
  Windows/VBA on at work, Linux+Haskell (and Python) on weekends Ofnuts 4 4,701 Feb-09-2017, 03:11 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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