准备工作

在学习Python数据分析前,需要安装:

  1. 虚拟环境
  2. jupyter
  3. 数据分析三剑客: “numpy”, “pandas”, “matplotlib”

安装虚拟环境

在window终端(cmd)中

  1. pip install virtualenv
  2. pip install virtualenvwrapper-win

创建虚拟环境并安装jupyter

  1. 创建一个ipython(Python终端)的虚拟环境
    mkvirtualenv ipythonenv
  2. 进入虚拟环境
    workon ipythonenv
  3. 安装jupyter
    pip install jupyter -i https://pypi.douban.com/simple
    (执行这句话会顺带安装ipython)
    【数据分析】安装虚拟环境,jupyter,三剑客
  4. 查看
    pip freeze (或 pip list)

这里有人或许会有疑问:为什么要在虚拟环境中安装jupyter?在cmd中直接安装不是更方便吗?
个人见解:在虚拟环境中创建的好处是“独立分割空间并且便于管理”

安装数据分析三剑客

pip install numpy pandas matplotlib scipy -i https://pypi.douban.com/simple
(这里使用国内豆瓣的源)

启动jupyter

jupyter notebook
【数据分析】安装虚拟环境,jupyter,三剑客

相关文章:

  • 2021-04-04
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-11-02
  • 2022-12-23
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案