> 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
python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip
```

永久更改源

```bash
py -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/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://mirrors.tuna.tsinghua.edu.cn/anaconda/>
* **安装帮助** <https://docs.anaconda.com/anaconda/install/linux/>
* **镜像帮助** <https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/>
* **PyPI 镜像使用帮助** <https://mirrors.tuna.tsinghua.edu.cn/help/pypi/>

```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:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
```

* **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 。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.juzisan.site/python/1.-python-yun-hang-huan-jing-de-da-jian.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
