I called the project psutil-demo and located it in subdirectory PycharmProjects of my home directory.Select the location and name of the project.We’ll make use of P圜harm’s feature to automatically create and manage a Python virtual environment for our psutil-demo project. Let’s create a new project, called psutil-demo, for testing out the CPU and RAM usage functions. Sudo apt install build-essential python3 python3-dev python3-venv python3-pip Project and virtual environment creation On Debian you can achieve this by installing the following system packages: Since we plan on working with some Python code, let’s prepare our Linux system for Python development. It is based on the Gnome desktop environment and has the P圜harm Community Edition installed. Refer to this article for instructions on how to quickly install the P圜harm Community Edition on your system.įor writing this article and testing out the example code, I used my Debian 10 based laptop. The free P圜harm Community Edition suffices. ![]() Ideally, you also have P圜harm installed, the excellent Python IDE from JetBrains. Consequently, all you need for this article is a basic Linux installation with desktop environment. Pretty much all Linux distributions come bundled with Python 3. But isn’t it more fun to build something yourself? It could be an enjoyable and educational hobby project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |