> For the complete documentation index, see [llms.txt](https://www.juzisan.site/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.juzisan.site/python/1.-python-yun-hang-huan-jing-de-da-jian.md).

# 1. python 运行环境的搭建

## 1. **python ide安装和 pip 包管理**

### 1. python 运行软件 [**python ide**](https://www.python.org/downloads/) python 编辑软件[**vscode**](https://code.visualstudio.com/)

### 2. **pip 安装更新**

设置临时源更新 pip

```bash
pip install -i https://mirrors.ustc.edu.cn/pypi/simple package
```

永久更改源 # 使用本镜像站来升级 pip

```bash
pip install -i https://mirrors.ustc.edu.cn/pypi/simple pip -U
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/simple
```

安装常用的包

```bash
py -m pip install pandas
```

下面的不一定用得上

```bash
pip install --upgrade
```

```bash
python -m pip install --upgrade pip
```

### 3. 步骤：

1. 程序运行用 python ide
2. 程序编辑用 vscode
3. 程序版本控制用 github desktop 同步 gitee 源

***

## 2. **Anaconda 的安装**

### 1. linux mint 安装

* [linux mint 中的 LMDE](https://www.linuxmint.com/download_lmde.php) 是可以用 pyautogui 截图的
* linux mint 正常版本安装 anaconda ，先安装 ssh 服务

```bash
# 查看运行状态:

sudo systemctl status ssh

# 安装命令:

sudo apt-get install openssh-server

# 修改端口:

sudo nano /etc/ssh/sshd_config

# 启用开机自启：

sudo systemctl enable ssh

# 启动服务：

sudo systemctl start ssh
 

```

* **fedora** 关闭 wayland 就可以 scrot 截屏了

### 2. Anaconda 安装

* **下载地址** [官方下载地址](https://www.anaconda.com/download/success?reg=skipped)
* **安装帮助** <https://docs.anaconda.com/anaconda/install/linux/>
* **镜像帮助** [中国科学科技大学](https://mirrors.ustc.edu.cn/help/anaconda.html)
* **PyPI 镜像使用帮助** <https://mirrors.ustc.edu.cn/help/pypi.html>

```bash
bash ./Anacond
```

```bash
source /home/gly/anaconda3/bin/activate
```

```bash
conda init
```

```bash
source ~/.bashrc
```

```bash
conda config --set show_channel_urls yes
```

* **更改镜像**

```bash
channels:
  - nodefaults
custom_channels:
  conda-forge: https://mirrors.ustc.edu.cn/anaconda/cloud
  bioconda: https://mirrors.ustc.edu.cn/anaconda/cloud
show_channel_urls: true
```

* **conda更新**

```bash
conda update conda
```

```bash
conda update anaconda 
```

```bash
conda update spyder 
```

```bash
conda update --all
```

```bash
#安装和更新包
conda install package
conda update package
```

### 3. Wolfram 安装

Wolfram [下载地址](https://www.wolfram.com/download-center/?source=footer)

```bash
sudo bash ./Wolfram

# 安装目录
/home/gly/Wolfram/

/home/gly/Wolfram/sc1/
```

激活用 windows 系统

## 3. Github Desktop 安装

下载地址 <https://desktop.github.com/>

Linux 下安装 <https://git-scm.com/downloads/guis>

Linux 下安装 <https://www.gitkraken.com/>

## 4. Git 安装

[git](https://github.com/git-for-windows/git/releases/download/v2.49.0.windows.1/Git-2.49.0-64-bit.exe)

## 5. 网页库

1. python \*\*beautifulsoup4 \*\*[Beautiful Soup: We called him Tortoise because he taught us.](https://www.crummy.com/software/BeautifulSoup/)
2. httpx [Clients - HTTPX](https://www.python-httpx.org/advanced/clients/)
3.

## 6. gitkraken 和 pycharm 的安装

安装 snap <https://snapcraft.io/docs/installing-snapd>

安装 snap store `sudo snap install snapcraft --classic`

搜索，安装 gitkraken 和 pycharm 。
