farwish

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

 

      $ pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple   # 安装 numpy

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

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

 

Refer:在线运行Python代码

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

分类:

技术点:

相关文章:

  • 2021-08-05
  • 2021-11-30
  • 2021-06-09
  • 2021-12-05
  • 2021-09-25
  • 2022-12-23
  • 2021-10-05
  • 2021-11-10
猜你喜欢
  • 2021-05-26
  • 2021-11-02
  • 2021-11-30
  • 2021-11-20
  • 2021-11-30
  • 2021-11-30
  • 2021-04-04
相关资源
相似解决方案