Live2D

python安装第三方模块

1.pip 安装
命令: pip install 模块名
由于国外网站不稳定可能会出现超时的情况,我们可以自己指定下载源命令如下
临时修改
pip install  模块名  -i https://pypi.tuna.tsinghua.edu.cn/simple 
国内源如下:
阿里云 http://mirrors.aliyun.com/pypi/simple/ 
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
豆瓣(douban) http://pypi.douban.com/simple/ 
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

嫌每次都指定麻烦的话,可以选择永久修改

windows 环境下在 C:\Users\Administrator ,新建pip文件夹,在里面 新建文件 pip.ini ,内容如下

[global] 
timeout = 60000
index-url = http://mirrors.aliyun.com/pypi/simple/ 
[install] 
trusted-host=mirrors.aliyun.com

  效果如下

2.用wheel离线

先安装wheel ,pip install wheel

下载wheel离线包,离线包下载地址,https://www.lfd.uci.edu/~gohlke/pythonlibs/

打开文件位置,打开命令行 ,pip install whl文件名,就可以安装离线包了

如果不知道下载cp35,cp36,cp37 可以通过下面程序查看(ps: cp37 意思是cpython3.7)

import pip._internal
print(pip._internal.pep425tags.get_supported())
  

 

posted @ 2019-07-24 15:29  穆梓先生  阅读(292)  评论(0编辑  收藏  举报
$(function(){ $('#returnTop').click(function () { $('html,body').animate({ scrollTop: '0px' }, 800); returnfalse; }); });