Install or activate Python

Install or activate Python

Postby Den Hook » Tue Dec 27, 2016 7:12 pm

Just installed Zorin OS 12 Ultimate.

All's working fine and followed tips as activate Firewall etc. Now i wanted to check if Python was installed but couldn't find it (menu - programming). So i tried to get it from de software store, but i can't find it there either !

Does that mean that i have to download it from python.org (https://www.python.org/downloads/release/python-360/) ?
and next question: How do i install it correctly after downloading the tar-file ?

Thanx
User avatar
Den Hook
 
Posts: 32
Joined: Sat Feb 07, 2015 1:55 pm

Re: Install or activate Python

Postby Den Hook » Fri Jan 06, 2017 8:43 pm

No response so far. So I've did some research and found this: https://www.digitalocean.com/community/ ... untu-16-04

Should this be the way to install Python on a Linux-based OS like Ubuntu AND also Zorin OS ?

As soon as I got a new system running on Zorin OS, I'll give it a try.
User avatar
Den Hook
 
Posts: 32
Joined: Sat Feb 07, 2015 1:55 pm

Re: Install or activate Python

Postby Swarfendor437 » Sat Jan 07, 2017 12:31 am

Hi, Please don't think I have been ignoring you - I don't code so can't provide you with an answer. ;) :D
https://vimeo.com/user15592214
https://trisquel.info/
https://www.opendesktop.org/member/257685/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 9683
Joined: Wed Sep 18, 2013 5:51 pm

Re: Install or activate Python

Postby Den Hook » Sun Jan 15, 2017 12:01 pm

I've tried the procedure found on the site of digitalocean (see above).

This seems to work so far but with the following possible issues:

[*] It seems to me that python 3 was allready installed on Zorin-OS, but has to be activated.
[*] The procedure gives you a separate environment (directory en python virtual environment) so that you can work in python apart from the Zorin/Ubuntu/OS python-environment. So you cannot interfere. That's a good thing offcourse.
[*] The command to create a virtual environment (pyvenv in the description) is replaced by a new python-command (python3.6 -m venv). I've got an error-message but the results was allmost ok (the ls command gave same result except for the file "share" that was missing)
[*] the test to create a small python programm "Hello World" didn't work with the nano-editor. Possibly nano doesn't exist in Zorin. It worked well with the editor vi.

So no guarantee... next step... try to work with python. ;)
User avatar
Den Hook
 
Posts: 32
Joined: Sat Feb 07, 2015 1:55 pm

Re: Install or activate Python

Postby dwi0103 » Fri Jun 09, 2017 6:31 am

i have the same problem too. i had python 2 in terminal but there is no idle python everywhere....
i'm waiting for the reply in thi topic too.
User avatar
dwi0103
 
Posts: 2
Joined: Mon Jun 05, 2017 4:59 am

Re: Install or activate Python

Postby Linx » Tue Jan 09, 2018 2:57 pm

Open up a terminal window by pressing
[ctrl] + [alt] + [t]

Then run the following:
Code: Select all
which python
which python3
which python2


It should show you what is installed and what isn't, I personally had no issues compiling the python code from source (basically the only thing I have ever compiled without issue.

You should be able to download a .tar.gz file from python.org and you will need to do something like this.
(Note: I'm doing this from memory so the steps will likely vary a little bit)
Code: Select all
tar -xzvf <filename>.tar.gz
cd <TheExtractedDirectory>
./configure
make

The next part is pretty fuzzy so imma jot down a few things it might be you only need the one that works =P
Code: Select all
sudo make altinstall
sudo make alt-install

Sorry I couldn't be of more help, Python is installed in most distor's by default, to write a python script you really only need to a text editor save the file as a <filename>.py then change the permissions of the file with
Code: Select all
chmod 750 <filename>.py


then you can run it using
Code: Select all
python <filename>.py
User avatar
Linx
 
Posts: 271
Joined: Wed May 25, 2011 7:19 pm

Re: Install or activate Python

Postby maint1947 » Tue Sep 11, 2018 7:19 am

Hello
This site has helped me a lot in the past couple of years. It includes programming tutorials and python tutorial.
Once have a look if you need any kind of help with python related programs
User avatar
maint1947
 
Posts: 1
Joined: Mon Sep 10, 2018 2:21 pm

Re: Install or activate Python

Postby swara31 » Fri Apr 12, 2019 6:37 am

How to install Python?
User avatar
swara31
 
Posts: 1
Joined: Fri Apr 12, 2019 5:06 am

Re: Install or activate Python

Postby zorinantwerp » Fri Apr 12, 2019 4:07 pm

Hi

Zorin15 beta
goto menu/software
in search box fill in python

you can also follow the ubuntubook for latest version
Code: Select all
http://ubuntuhandbook.org/index.php/2019/02/install-python-3-7-ubuntu-18-04/


+++
We have a be nice policy.
Please be positive and constructive.
I am a volunteer and I do not work for, nor do I represent, Zorin Group.
User avatar
zorinantwerp
 
Posts: 524
Joined: Sun Oct 22, 2017 3:52 pm

Re: Install or activate Python

Postby anderson26 » Sat Apr 27, 2019 9:21 pm

Hello,

Actually I don't have a knowledge of Zorin 12 ultimate version.What is the feature of zorin 12?
Thanks....
User avatar
anderson26
 
Posts: 1
Joined: Sat Apr 27, 2019 8:04 pm
Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest