Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Jul 2017, 16:55
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Installing Python 3.6.x on Tahrpup
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
port

Joined: 01 Oct 2015
Posts: 16

PostPosted: Thu 18 May 2017, 23:41    Post subject:  Installing Python 3.6.x on Tahrpup  

If I get the python 3.6.x source from python.or could I compile it for Tahrpup from the instructions given here?:
https://www.tecmint.com/install-python-in-linux/

If it is possible to do this, can the 3.6.x version peacefully co-exist with the 2.7.6 version that comes installed on Tahrpup?

Thanks!

-port
Back to top
View user's profile Send private message 
6502coder


Joined: 23 Mar 2009
Posts: 364
Location: Western United States

PostPosted: Fri 19 May 2017, 15:30    Post subject:  

You don't have to compile Python from source. I highly recommend installing the prebuilt package from ActiveState. I've been very happy using the ActiveState packages on Puppy.

You can download the package from here:
https://www.activestate.com/activepython/downloads

Installation instructions are here:
http://docs.activestate.com/activepython/3.5/get/linux/
Back to top
View user's profile Send private message 
port

Joined: 01 Oct 2015
Posts: 16

PostPosted: Fri 19 May 2017, 17:41    Post subject:  

Quote:
You don't have to compile Python from source. I highly recommend installing the prebuilt package from ActiveState. I've been very happy using the ActiveState packages on Puppy.

You can download the package from here:
https://www.activestate.com/activepython/downloads

Installation instructions are here:
http://docs.activestate.com/activepython/3.5/get/linux/


Thanks, I'll give this a try. And it will work side-by-side with the preinstalled Python 2.7.x?
Back to top
View user's profile Send private message 
6502coder


Joined: 23 Mar 2009
Posts: 364
Location: Western United States

PostPosted: Fri 19 May 2017, 18:21    Post subject:  

As I'm sure you know, Python 3 can break some Python 2 programs. But you can have both Python2 and Python3 installed as long as your Python programs stick to the correct version. Since TahrPup already has Python2, I would suggest setting up Python3 so that it is isolated as much as possible from the Python2 stuff. Remember that TahrPup and Puppy in general will not be expecting to see Python3, so you should set things up so that anything that simply runs "python" will get 2.7.x and not 3.

For example, install Python3 into /opt/Python3 or some such directory, so that all the Python3 stuff has distinctly different full pathnames from any of the existing Python2 stuff. You can use the Python environment variables such as PYTHONHOME, PYTHONPATH, and maybe PYTHONSTARTUP to help your Python3 programs look only in the places that are appropriate to Python3.
Back to top
View user's profile Send private message 
port

Joined: 01 Oct 2015
Posts: 16

PostPosted: Tue 23 May 2017, 20:26    Post subject:  

Quote:
As I'm sure you know, Python 3 can break some Python 2 programs...


Thank you very much 6502coder!

Python is a long ways from 6502 assembly but it seems like at one point the 6502 was used in many different platforms...
Back to top
View user's profile Send private message 
6502coder


Joined: 23 Mar 2009
Posts: 364
Location: Western United States

PostPosted: Wed 24 May 2017, 14:31    Post subject:  

The 6502 was THE cpu of the first-generation home computers. It powered the Apple II, the Commodore 64, and the Atari 400 and 800, among others. Despite being over 40 years old now, it's still a popular choice for embedded systems. Python is indeed a long way from 6502 assembler. FORTH, on the other hand, was the perfect language for the 6502.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0544s ][ Queries: 14 (0.0071s) ][ GZIP on ]