Browse Source

update references_tips/InstallPython.md.

pull/4/head
bushuhui Gitee 4 years ago
parent
commit
4dd1166e43
1 changed files with 6 additions and 13 deletions
  1. +6
    -13
      references_tips/InstallPython.md

+ 6
- 13
references_tips/InstallPython.md View File

@@ -1,16 +1,16 @@
# 安装Python环境

由于Python的库比较多,并且依赖关系比较复杂,所以请仔细阅读下面的说明,并按下面的说明来操作,减少问题出现的可能。 **但是所列的安装方法说明里有较多的细节,也许和你的系统并不适配,所以会遇到问题。如果遇到问题请通过搜索引擎去查找解决的办法**,通过这个方式锻炼自己解决问题的能力。
由于Python的库比较多,并且依赖关系比较复杂,所以请仔细阅读下面的说明,并按下面的说明来操作,减少问题出现的可能。 **但是所列的安装方法说明里有较多的细节,也许和你的系统并不适配,所以可能会遇到问题。如果遇到问题请通过搜索引擎去查找解决的办法**,通过这个方式锻炼自己解决问题的能力。

可以参考后面所列的`1.Winodws`或者`2.Linux`章节所列的将Python环境安装到计算机里。


## 1. Windows下安装

由于Anaconda集成了大部分的python包,因此能够很方便的开始使用。由于网络下载速度较慢,因此推荐使用镜像来提高下载的速度。镜像的使用方法可以参考:[Anaconda镜像的说明文档](https://mirrors.tuna.tsinghua.edu.cn/help/anaconda)
由于Anaconda集成了大部分的python包,因此能够很方便的开始使用。由于网络下载速度较慢,因此推荐使用镜像来提高下载的速度。镜像的使用方法可以参考:[Anaconda镜像的说明文档](https://mirrors.bfsu.edu.cn/help/anaconda/)

1. 在这里找到适合自己的安装文件,然后下载
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
https://mirrors.bfsu.edu.cn/anaconda/archive/

例如: https://mirrors.bfsu.edu.cn/anaconda/archive/Anaconda3-2020.11-Windows-x86_64.exe

@@ -36,17 +36,12 @@ bash ./Anaconda3-2020.11-Linux-x86_64.sh
## 3. 设置软件源
### 3.1 设置conda软件源

参考这里的[conda安装和软件源设置说明](https://mirror.tuna.tsinghua.edu.cn/help/anaconda/)
参考这里的[conda安装和软件源设置说明](https://mirrors.bfsu.edu.cn/help/anaconda/)

```
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
```

或者其他源
```
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
```


@@ -119,5 +114,3 @@ conda remove -n yourname --all
- [pip的安装、使用等](python/pip.md)
- [virtualenv的安装、使用](python/virtualenv.md)
- [virtualenv便捷管理工具:virtualenv_wrapper](python/virtualenv_wrapper.md)

* Anaconda使用技巧

Loading…
Cancel
Save