When using pip to install the module, it prompts MemoryError

When using pip to install dependent modules, the error is as follows:
insert image description here
Solution:
add --no-cache-dir parameter

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


Other problems encountered during installation:

  • Set python source command:

pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

Prompt that there is no config parameter;

  • Solution: upgrade pip

pip3 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.

insert image description here

  • Solution: Add parameter --ignore-installed

[pip3 --no-cache-dir install -r requirements.txt --ignore-installed

Guess you like

Origin blog.csdn.net/weixin_42551921/article/details/127885178