Установка python linux manjaro

Установка python linux manjaro

Note: Manjaro (archLinux) system time is 8 hours faster -> sudo timedatectl set-local-rtc 1
https://www.cnblogs.com/zhi-leaf/p/6282301.html

1.2. Change source:

sudo pacman-mirrors -i -c China -m rank sudo pacman -Syy 

Note: Pacman commonly used commands

Pacman is a package manager for Arch Linux. It combines a simple binary package format with an easy-to-use build system. Whether the package comes from the official Arch repository or the user creates it, Pacman can manage it easily.

Update system

In Archlinux, the entire system can be updated with one command:
pacman -Syu
If you have used pacman -Sy Synchronize the local package database with the remote warehouse, or just execute: pacman -Su

Installation package

➔ pacman -S package name: For example, executing pacman -S firefox will install Firefox. You can also install multiple packages at the same time,
Just separate the package names with spaces.
➔ pacman -Sy package name: The difference from the above command is that this command will execute the installation after synchronizing the package database.
➔ pacman -Sv package name: install after displaying some operation information.
➔ pacman -U: Install the local package, whose extension is pkg.tar.gz.
➔ pacman -U http://www.example.com/repo/example.pkg.tar.xz Install a remote package (not in the source configured by pacman)

Delete package

➔ pacman -R package name: this command will only delete the package and keep all its installed dependencies
➔ pacman -Rs package name: when deleting the package, delete all its dependencies that are not used by other installed packages
➔ pacman -Rsc package name: when deleting the package, delete all programs that depend on this package
➔ pacman -Rd package name: Do not check dependencies when deleting the package.

Search package

➔ pacman -Ss keyword: Search for packages with keywords in the warehouse.
➔ pacman -Qs Keyword: Search for installed packages.
➔ pacman -Qi package name: View detailed information about the package.
➔ pacman -Ql package name: List the files of the package.

Other usage

➔ pacman -Sw package name: only download the package, not install it.
➔ pacman -Sc: Clean up uninstalled package files. The package files are located in the /var/cache/pacman/pkg/ directory.
➔ pacman -Scc: Clean up all cache files.

Читайте также:  Touch screen calibration linux

1.3.Vim installation

1.4. Add archlinuxCN source

Edit /etc/pacman.conf with vim —> the command is: sudo vim /etc/pacman.conf

Add the following lines at the bottom of the file:

[archlinuxcn] SigLevel = Optional TrustedOnly Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch 

Refresh cache and import key chain
After modifying the above two parts, the terminal executes the following commands:

sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring 

1.5. Installation tools:

1.6. Chinese font

Conventional Linux system Chinese fonts are very scarce, you need to install it yourself

sudo pacman -S ttf-roboto noto-fonts ttf-dejavu # 文泉驿 sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy-zenhei Installing wqy-bitmapfont and wqy-zenhei can solve the problem of excessive font spacing on the terminal of manjaro18 xfce version, just restart the terminal. # Siyuan font sudo pacman -S adobe-source-code-pro-fonts sudo pacman -S adobe-source-sans-pro-fonts sudo pacman -S adobe-source-serif-pro-fonts sudo pacman -S adobe-source-han-sans-cn-fonts sudo pacman -S adobe-source-han-serif-cn-fonts 

1.7. Chinese input method

I like Baidu input method

2020.6.15 Usage: After yay -S fcitx-baidupinyin cp -r /tmp/data ~/.config/BaiduPY.user Copy the data file to the user directory
After logging out and logging in, you can see the fcitx icon in the lower right corner (or upper left corner).

1.8. Application software installation

1.8.1.wps and corresponding fonts

sudo pacman -S wps-office-cn sudo pacman -S ttf-wps-fonts 

Note: 2020.1.24 install wps-office-cn 11.1.0.9080-3 is the Chinese version

1.8.4. Install Markdown editor

1.8.5.pacman manager

Install qq, baiduwanpan,virtualbox,Anaconda,Chrome
virtualbox Kernel driver not installed (rc=-1908)
sudo modprobe vboxdrv
anaconda activation

Activate the default environment:

source /opt/anaconda/bin/activate base

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 

2. Vscode installation and configuration python development environment

sudo pacman -S visual-studio-code-bin 

Note: Adjust the font size of the appearance, method: [View]-[Appearance]-[Zoom in] or [Zoom out], zoom in shortcut key: Ctrl key + plus sign key, zoom out shortcut key: Ctrl + minus sign key
Vscode is an open source cross-platform editor. By default, the language used by vscode is English (us). How to change its display language to Chinese?

2) Use the shortcut key combination [Ctrl+Shift+p], enter «configure display language» in the search box, and click OK;

3) Select Install additional languages, install Chinese (Simplified) Language Pack for Visual Studio Code;

4) Restart the vscode tool;

As shown in the figure below, open the software after installation, click the bottom icon on the left, search for Python, select the first plug-in in the list, and click install to install the program.

6) Plug-in installation Anaconda Extension Pack

Plug-in function: The function of this plug-in is to increase the indicator line in .py. Using this plug-in can make the code hierarchy clearer.

8) Plug-in name: Bracket Pair Colorizer;

Plug-in function: The function of this plug-in is to add color to the brackets in the code. The same pair of brackets are the same color, especially when the brackets are also wrapped, it looks more clear.

  • Custom code snippet
  1. File>Preferences>User Code Snippet
  2. Search python
  3. Add code

10) Open the working directory

Читайте также:  Флешка в linux server

As shown in the figure below, click the file icon on the left, and then click the «Open Folder» button to select a folder as the working directory, and then all new files will be stored in this directory.
After adding, as shown below, my file name is python, and all letters become uppercase after adding.

As shown in the figure below, click the icon of the file on the left and move the mouse to the directory name of the project. Mine is VSCODEPROJECT. A file with a + sign will come out. Click and enter hello.py to generate a .py file. How to print( «hello»), click F5, and a hello will appear in the debug window below. If no error is reported, it means that the configuration is successful, and then you can start Python development.

12) Code formatting tool yapf

In VSCode, press the shortcut key Alt+Shift+F to automatically format the code and the operation is very simple.

Источник

ArchPKGs

Full Tutorial on pacman-python Installation on Arch Linux (Manjaro, RebornOS)

«Shows you archlinux packages for the specific pip package» is the developer’s gist of pacman-python . To get this package ( pacman-python ) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Parabola, Anarchy and RebornOS is fairly easy. This tutorial will cover how to install/update/remove the package with either the built-in package manager pacman or an AUR helper like yay .

Table of Contents

There are two typical methods to install pacman-python from AUR. pacman is the choice for you if you are an expert of Arch Linux and have the knowledge of how packages are built. If not, yay is a common alternative to install packages without the prerequisite to review PKGBUILD and build packages with makepkg by yourself.

sudo pacman -S --needed git && git clone https://aur.archlinux.org/pacman-python.git && cd pacman-python && makepkg -si
  1. Install git if it is not installed before.
  2. clone the package’s git repository from upstream URL.
  3. cd into the folder of the repository.
  4. Build the package with makepkg , then install it with pacman .
yay -S pacman-python

Just like installing AUR packages, updating them is basically the same. All you have to do is pull it from source then re-build it. Yet, it is still a good practice to upgrade your whole system first with sudo pacman -Syu before updating any packages to avoid dependency issues, since Arch is a rolling-release Linux distribution.

Before running the command, make certain you are in the folder of the repository you previously cloned:

git pull && makepkg -si
  1. pull from the package’s git repository.
  2. Use makepkg to build the package, then update it with pacman .

Compared to installing and updating packages, removing is the easiest of these three,just choose whether to remove the dependencies that no longer required by other packages and the configuration files used by the package.

sudo pacman -R pacman-python
sudo pacman -Rs pacman-python
sudo pacman -Rns pacman-python
yay -R pacman-python
yay -Rs pacman-python
yay -Rns pacman-python

For more details about AUR packages installation on Arch Linux, please refer to Two Ways to Install Packages from AUR on Arch Linux/Manjaro from NoCache.

Читайте также:  Linux установить ssh сервер

Guide on Install (Update/Uninstall) undervolt on Arch Linux, Manjaro and Artix

«A program to undervolt AMD 14h Family processors (E350 at least).» is the maintainer’s description of undervolt. To install or uninstall undervolt from AUR (Arch User Repository) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, ArcoLinux, RebornOS, Parabola, Anarchy) is rather easy. This tutorial will be covering how to install, update and uninstall the package with either the default package manager pacman or an AUR helper like yay.

How to Install/Update/Uninstall gtk-theme-arc-solid-grey-git on Arch Linux/Manjaro/Garuda

«A flat, grey theme without transparent elements for GTK 3, GTK 2 and Gnome-Shell. Latest commit from the master branch on Github.» is the maintainer’s description of gtk-theme-arc-solid-grey-git. To install or uninstall gtk-theme-arc-solid-grey-git from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and RebornOS is rather straightforward. This tutorial will cover how to install/update/uninstall the package with either the default package manager pacman or an AUR helper like yay.

The Simplest Guide on python-xstatic-spin Installation on Arch Linux, Manjaro and Parabola

python-xstatic-spin is «Spin 1.2.5 (XStatic packaging standard)» quoting from its description. To get python-xstatic-spin from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Artix, Anarchy and RebornOS is quite simple. This tutorial will taught you how to install/update/remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay).

Guide on Install (Update, Uninstall) prism-bin on Arch Linux/Manjaro/RebornOS

«An RTMP stream recaster / splitter» is the maintainer’s gist of prism-bin. To install or uninstall prism-bin from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Parabola, Artix and Anarchy is relatively easy. This tutorial will taught you how to install/update/remove the package with either the built-in package manager pacman or an AUR helper like yay.

A Quick Tutorial on mydict-bin Installation on Arch Linux, Manjaro and Anarchy

mydict-bin is «一款中英文词典» quoting from its gist. To get this package (mydict-bin) from AUR (Arch User Repository) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, BlackArch, Parabola, RebornOS, Artix) is fairly simple. This tutorial will cover how to install, update and remove the package with either the default package manager pacman or an AUR helper like yay.

neovim-twilight-git Install, Update and Remove Guide on Arch Linux (Manjaro, Artix)

«Dims inactive portions of code during editing» is the maintainer’s outline of neovim-twilight-git. To install and update this package (neovim-twilight-git) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Parabola, RebornOS, ArcoLinux and Garuda is pretty simple. This tutorial will show you step-by-step how to install/update/remove the package with either the built-in package manager pacman or an AUR helper like yay.

More guides… copyright 2023 ArchPKGs. All Rights Reserved.

Источник

Оцените статью
Adblock
detector