前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用pip安装模块时,提示MemoryError

使用pip安装模块时,提示MemoryError

原创
作者头像
JQ实验室
发布2022-11-18 09:45:14
1.4K0
发布2022-11-18 09:45:14
举报
文章被收录于专栏:实用技术实用技术

在使用pip安装依赖模块时,报错如下:

在这里插入图片描述
在这里插入图片描述

解决方法:

添加 --no-cache-dir参数

pip3 --no-cache-dir install -r ***

安装时遇到的其他问题:

提示没有config参数;

  • 解决办法:升级pippip3 install -U pip

pip install --upgrade pip

  • 提示:ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
在这里插入图片描述
在这里插入图片描述
  • 解决:添加参数--ignore-installed[pip3 --no-cache-dir install -r requirements.txt --ignore-installed

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档