HOW TO INSTALL PYTHON 3.6.9 EASILY IN DEEPIN

PythonIt is a high-level, general-purpose interpreted programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its remarkable use of significant white space.

Fortunately, a programmer experienced in any programming language (whatever it is) can catch Python very quickly. It is also easy to use and learn for beginners. The Python programming language is conspicuous for its data science, machine learning, system automation, API and web development, and more.

In this publication I bring a simple script which makes the installation of Python super easy in our beloved Deepin, to install it simply follow the following 3 easy steps.

  • Copy the following to the clipboard:
cd /tmp
wget  https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz  
sudo apt update
sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev
tar -xf Python-3.6*.tar.xz
cd Python-3.6.9
./configure --enable-loadable-sqlite-extensions # Avoid an error in sqlite
make
sudo make altinstall
sudo python3.6 -m pip install --upgrade pip
sudo python3.6 -m pip install --upgrade setuptools 
echo 'Done. Type python3.6 to run.'
  • Open Deepin-Editor and paste it, so save it for example with the name: install-python3.6.sh and make sure it is executable.
  • Open a terminal in the same path where I save the file above and then type:
bash install-python3.6.sh

The end. That's all you have to do to have a perfect Python installation and it's ready to go.

Some history about Python

The Python programming language, which dates back to 1991, was seen as a way to fill in gaps, a way to write scripts that "automate boring things" (as a popular book on learning Python says) or to quickly prototype applications which will be implemented in other languages.

However, in recent years, Python has become a first-class citizen in modern software development, infrastructure management, and data analysis. It is no longer a backroom utility language, but a major force in web application building and systems management, and a key driver of the explosion of big data analytics and machine intelligence.

If the article was useful to you, it is appreciated that you leave us a positive rating below and if you have any doubts, of course do not hesitate to ask.

CLARIFICATION

If you use Deepin V20 beta or higher then you have no need to follow this tutorial since Deepin 20 already has Python 3.7.3 installed. The default version in Deepin 15.11 is however lower and you can update it by following this tutorial. Thank you@JareGM for the reminder.



4.8 18 votes
Rate the Article
 
Subscribe
Report of
10 Reviews
More popular
Newer Older
Opinion from the article
See all comments
Jare GM
Jare GM (@jaregm)
1 month ago

Python 3.7.3 is already installed in deepin. Simply put, if we write 'python3 ′ (without the quotes) in the deepin terminal, we enter the IDLE or Python Shell (version 3.7.3 in deepin 20).
If in the deepin terminal we write only 'python'(without quotes), the Python version will be 2.7.16.
We will know that we are in the Python interpreter because the three diples appear: >>>. To exit the Python Shell type 'exit ()'(without the quotes), or'quit ()' (without quotation marks).

Эли
Эли (@eli)
Admin
Answering to Jare GM
1 month ago

Jare GM Greetings, as always a pleasure to see you here.

Actually the tutorial is intended for those users in Deepin 15.11, which in the end is still the stable version of Deepin. When Deepin 20 comes out then we will update the article or a new one will be made, about how to update what the version is then the Python.

Anyway thank you and it's worth your clarification since whoever reads this in Deepin 20 Beta knows that they shouldn't follow this tutorial. I will put an explanatory note at the end of the article.

Thanks again.

Luis Serrano
Luis Serrano (@luis-serrano)
1 month ago

The script simplifies the process, many gracas Eduardo Willians

Car
Car (@car)
1 month ago

Excellent, thanks for the input.

javier velasquez
javier velasquez (@javiervelasquez)
1 month ago

Eduardo Willians <Thank you for your contribution, very good .. blessings

Эли
Эли (@eli)
Admin
1 month ago

Eduardo Willians thanks for the great collaboration.

Alkyt
Alkyt (@alkyt)
1 month ago

Hi, I have a doubt. How do I do if I want to install python-tk for that version or later versions?

s384
s384 (@s384)
Answering to Alkyt
1 month ago

To make use of the different versions of python you have to specify the version you want to use.
These commands in the console:
If you type python3 it will result in the default
Instead if you write python3.6 it will give the interpreter 3.6
Now if python-tk is a module that is inside pip, just run
pip3.6 install python-tk (I don't know if it's in pip)
Now the most recommended is to use a venv (virtual environment) to install modules in different projects.

Frank Alvarez
Frank Alvarez (@franky08)
1 month ago

Thank you very much.

10
0
We would like to know what you think, Join the discussion.x
()
x