windows下在pycharm安装psutil模块时,报错Could not find a version that satisfies the requirement redis的解决方法

近期在windows安装psutil模块时,显示Could not find a version that satisfies the requirement redis。意思是镜像不匹配,在网上查找了解决方法之后,顺利解决,现做一记录,供积累和日后使用。

1.如果在windows下的话,(在有网络的情况下)
可以在powershell里使用pip命令安装。使用国内的镜像(linux可以在terminal里)

如:
阿里云 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/

2.使用方法

 pip install psutil.py -i http://pypi.douban.com/simple

若报错pip源不可信或者不安全,请使用如下命令

pip install psutil -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

在这里插入图片描述powershell里显示安装成功

在这里插入图片描述

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值