Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use python to realize the Visualization function of Task Manager in linux

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "linux how to use python to achieve task manager visualization function", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux how to use python to achieve task manager visualization function" bar!

1. Python installation

1. Create a folder

Mkdir python

Go to the folder and decompress:

Tar zxvf python-3.6.5.tar

Go to the python-3.6.5 folder and enter:

. / configure

Then there are a lot of processes, and finally you are prompted to run a command to follow the prompted command input.

Enter the make command (if the prompt does not exist, just use apt install make to install it) and wait.

Make & & make install # compile and install

Continue to wait for the installation to complete.

At this time, we cd to the root directory to check our own python version (because the python2.7 version cannot implement the library function of version 3.0 or later)

Python-v

What is the reason why it is still 2.7?

This is because the pyton3.6 version you installed has not been modified to the default version of the system.

At this point, you need to delete the python-related files located in the / usr/bin/ directory

Cd / usr/binls-al * python* # View the version that the existing soft link points to rm python # delete the old soft link ln-s python3.6 python # and create a new soft link

Look at the current version at this time, and this is the normal version.

2. Pycharm installation

After decompressing, enter the pycharm directory:

Cd pycharm-community-2019.2.5/binbash pycharm.sh # Executive Program

But it's troublesome to enter the directory every time you open it, so let's create a "shortcut":

3. Install third-party libraries

When the system installs the python3.6 version by default, the built-in pip is also the pip3 version (if there is no pip, use the apt intall pip3 command to install it) because errors are always reported when installing with pip, so it is recommended to download the installation package from the official website and install it yourself.

Here is an example:

After downloading the file, go directly to the directory:

Just install it!

Pip install pyqt... # Thank you for reading, the above is the content of "how linux uses python to achieve task manager visualization". After the study of this article, I believe you have a deeper understanding of how linux uses python to achieve task manager visualization, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report