python mirror site

来源:互联网 发布:linux 防火墙端口开放 编辑:程序博客网 时间:2024/06/07 04:07

Install systemwide via a Linux package manager

Users on Linux can quickly install the necessary packages from standard repositories for various distributions. These installations will be system-wide, and will be somewhat out of date compared to versions installed with pip.

The install commands for the most common Linux distributions are given here.For other distributions, search the default package repository for packagenames of individual packages in the SciPy stack.

Ubuntu & Debian

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

The versions in Ubuntu 12.10 or newer and Debian 7.0 or newer meet the currentSciPy stack specification. Users might also want to add theNeuroDebianrepository for extra SciPy packages.


目前国内靠谱的 pip 镜像源有:

  • 清华: https://pypi.tuna.tsinghua.edu.cn/simple
  • 豆瓣: http://pypi.douban.com/simple/
  • 阿里: http://mirrors.aliyun.com/pypi/simple/

在 pip 命令中使用镜像源很简单,在执行 install 命令时,使用 -i 参数加上源地址就可以了,例如:

?
1
pip installdjango -i http://pypi.douban.com/simple/
0 0
原创粉丝点击