提交 ed49f1f2 编写于 作者: H HUSTwanglei

translation of install

上级 2a3bab15
# Installing and getting started
# 安装和入门
To install the latest release of seaborn, you can use `pip`:
为了安装最新版本的seaborn, 可以 `pip`命令:
```py
pip install seaborn
```
It’s also possible to install the released version using `conda`:
也可以使用 `conda` 命令安装:
```py
conda install seaborn
```
Alternatively, you can use `pip` to install the development version directly from github:
或者,您可以使用 `pip` 直接从github安装开发版本:
```py
pip install git+https://github.com/mwaskom/seaborn.git
```
Another option would be to to clone the [github repository](https://github.com/mwaskom/seaborn) and install from your local copy:
另外的方法是从 [github仓库](https://github.com/mwaskom/seaborn) 下载,从本地安装:
```py
pip install .
```
## Dependencies
## 依赖
* Python 2.7 or 3.5+
### Mandatory dependencies
### 必须的依赖
* [numpy](http://www.numpy.org/) (>= 1.9.3)
* [scipy](https://www.scipy.org/) (>= 0.14.0)
* [matplotlib](https://matplotlib.org) (>= 1.4.3)
* [pandas](https://pandas.pydata.org/) (>= 0.15.2)
### Recommended dependencies
### 推荐的依赖
* [statsmodels](https://www.statsmodels.org/) (>= 0.5.0)
## Testing
## 测试
To test seaborn, run `make test` in the root directory of the source distribution. This runs the unit test suite (using `pytest`, but many older tests use `nose` asserts). It also runs the example code in function docstrings to smoke-test a broader and more realistic range of example usage.
为了测试 seaborn,请在源代码分发的根目录中运行 `make test`。 这会运行单元测试套件(使用 `pytest`,但许多旧测试使用 `nose` 断言)。 它还在函数 docstrings 中运行示例代码,以对更广泛和更现实的示例用法进行冒烟测试。
The full set of tests requires an internet connection to download the example datasets (if they haven’t been previously cached), but the unit tests should be possible to run offline.
完整的测试集需要 Internet 连接才能下载示例数据集(如果以前没有缓存过),但单元测试应该可以离线运行。
## Bugs
## 错误
Please report any bugs you encounter through the github [issue tracker](https://github.com/mwaskom/seaborn/issues/new). It will be most helpful to include a reproducible example on one of the example datasets (accessed through [`load_dataset()`](generated/seaborn.load_dataset.html#seaborn.load_dataset "seaborn.load_dataset")). It is difficult debug any issues without knowing the versions of seaborn and matplotlib you are using, as well as what [matplotlib backend](https://matplotlib.org/faq/usage_faq.html#what-is-a-backend) you are using to draw the plots, so please include those in your bug report.
\ No newline at end of file
请通过 github [issue tracker](https://github.com/mwaskom/seaborn/issues/new) 报告您遇到的任何错误. 在其中一个示例数据集中包含可重现的示例(通过 [`load_dataset()`](generated/seaborn.load_dataset.html#seaborn.load_dataset "seaborn.load_dataset") 访问)将是最有帮助的。 如果不知道你正在使用的 seaborn 和 matplotlib 的版本,以及 用于绘图的 [matplotlib backend](https://matplotlib.org/faq/usage_faq.html#what-is-a-backend),你很难调试任何问题,所以请在错误报告中包含这些内容。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册