2020-10-19 21:08:55

This commit is contained in:
wizardforcel
2020-10-19 21:08:55 +08:00
parent 7f63048035
commit ab0caba1f0
140 changed files with 3982 additions and 3982 deletions

View File

@@ -6,7 +6,7 @@
根据自己的操作系统安装好[Anaconda](http://www.continuum.io/downloads)后,在命令行下输入:
```
```py
conda list
```
@@ -14,12 +14,12 @@ conda list
In [1]:
```
```py
!conda list
```
```
```py
# packages in environment at C:\Anaconda:
#
_license 1.1 py27_0
@@ -169,7 +169,7 @@ zlib 1.2.8 0
第一次安装好 [Anaconda](http://www.continuum.io/downloads) 以后,可以在命令行输入以下命令使 [Anaconda](http://www.continuum.io/downloads) 保持最新:
```
```py
conda update conda
conda update anaconda
```
@@ -180,7 +180,7 @@ conda 是一种很强大的工具,具体用法可以参照它的[文档](http:
可以使用它来安装,更新,卸载第三方的 **python** 工具包:
```
```py
conda install <some package>
conda update <some package>
conda remove <some package>
@@ -188,25 +188,25 @@ conda remove <some package>
在安装或更新时可以指定安装的版本号,例如需要使用 `numpy 1.8.1`
```
```py
conda install numpy=1.8.1
conda update numpy=1.8.1
```
查看 `conda` 的信息:
```
```py
conda info
```
In [2]:
```
```py
!conda info
```
```
```py
Current conda install:
platform : win-64
@@ -229,7 +229,7 @@ Current conda install:
一个很棒的功能是 `conda` 可以产生一个自定义的环境,假设在安装的是 **Python 2.7** 的情况下,想使用 **Python 3.4**,只需要在命令行下使用 `conda` 产生一个新的环境:
```
```py
conda create -n py34 python=3.4
```
@@ -237,7 +237,7 @@ conda create -n py34 python=3.4
使用这个环境时,只需要命令行下输入:
```
```py
activate py34 #(windows)
source activate py34 #(linux, mac)
@@ -249,7 +249,7 @@ source activate py34 #(linux, mac)
`Anaconda` 默认使用的编辑器是 `spyder`,可以在命令行下输入:
```
```py
spyder
```