[Py] 简单的 Python 环境

python:https://www.python.org/downloads/html

pip:https://pip.pypa.io/en/stable/installing/#upgrading-pippython

  pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.orgurl

  但 macox 上安装的py3.7 只有 pip3 命令,无论你本地有没有,先升级 pip。spa

  $ pip3 -V && pip3 install -U pip && pip -Vcode

numpy:pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simplehtm

    设置永久镜像源:mkdir ~/.pip && vi ~/.pip/pip.confblog

[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

 

Link: http://www.javashuo.com/article/p-frgrumxr-cw.htmlip

相关文章
相关标签/搜索