When using pip to install dependent modules, the error is as follows:
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.
- Solution: Add parameter --ignore-installed
[pip3 --no-cache-dir install -r requirements.txt --ignore-installed