error: internally-managed-environment [FIX IN 4 WAYS]
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- error: internally-managed-environment [FIX IN 4 WAYS]
Commands
‘’’
sol1 : venv
#create virtual environments
$ python3 -m venv [name of your virtual environment].
#Active virtual environment
$ source [name of your virtual environment ]/bin/activated
#try to install python module again
$ pip install [python module name]
#exit or deactivate
$ deactivate
sol2 : pipx
install pipx
$ sudo apt install pipx
#ensure path
$ pipx insurepath
#install python module
$ pipx install [python module name]
sol3 : apt @02:50
#use regular installation method
$ sudo apt install python3-[name of python module]
sol4 : -forcefully install
$ pip install -break-system-packages [python module name]