Sometimes when we execute pip install -r requirement.txt
in a newer system, we may encounter such an error
Actually, it is warning you that continuing the execution may break your system's Python environment. Of course, with the attitude of "better safe than sorry," we choose to directly ignore the warning and continue execution
mkdir -p ~/.config/pip/
cd ~/.config/pip/
Then, in your preferred way, create a pip.conf
here and write the following content inside
[global]
break-system-packages = true
After that, just execute pip install -r requirement.txt
again
Alright, if you find this article post helpful, please give it a like. If you are able, consider supporting it with a tip. Thank you, meow
This post is synchronized by Mix Space to xLog
The original link is https://blog.nekorua.com/posts/maintain/116.html