当前位置 : 主页 > 编程语言 > python >

[Py] Py 环境

来源:互联网 收集:自由互联 发布时间:2021-06-25
python:https://www.python.org/downloads/ pip:https://pip.pypa.io/en/stable/installing/#upgrading-pip pip is already installed if you are using Python 2 =2.7.9 or Python 3 =3.4 downloaded from python.org 但 macox 上安装的py3.7 只有

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

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

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

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

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

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

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

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

 

Link: https://www.cnblogs.com/farwish/p/10823100.html

网友评论