总结自己Python环境配置过程和碰到的问题
WIN10系统
1.安装anaconda
[anaconda官网]
(https://www.anaconda.com/download/#windows)
- How do I get Anaconda with Python 3.5?
There are three ways to get Anaconda with Python 3.5:
We recommend that you download the latest version of Anaconda and then make a Python 3.5 environment.
Or download the latest version of Anaconda and run this command to install Python 3.5 in the root environment: conda install python=3.5
Or download the most recent Anaconda that included Python 3.5 by default, Anaconda 4.2.0. You can download it from our archive. Scroll down the page until you find version 4.2.0 for your platform.
2.使用Powershell
-
开始菜单中找到Windows PowerShell,然后从右击菜单中选择以管理员身份运行。
-
检查python安装是否成功,查看已安装的库
python
pip list
#或者
conda list
3.添加清华源
Anaconda 是一个用于科学计算的 Python 发行版,支持 Linux, Mac, Windows, 包含了众多流行的科学计算、数据分析的 Python 包。
Anaconda 安装包可以到 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 下载。
TUNA 还提供了 Anaconda 仓库的镜像,运行以下命令:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
4.安装其他库(ggplot)
ggplot信息
Installation
pip install -U ggplot#
or
conda install -c conda-forge ggplot#
or
pip install git+https://github.com/yhat/ggplot.git
我只有使用第一种语法安装成功了