Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python locally without package-manager-installer in Debian?

My package-manager has been broken now over one month and I have been unable to fix it, more here. I am now looking for a way to circumvent this problem without the package-manager/installer. How can I use python without pkg -manager in Debian?

Example error: "python -m http.server 8000 /usr/bin/python: No module named http"

like image 746
hhh Avatar asked May 21 '26 20:05

hhh


1 Answers

That doesn't seem to have anything to do with a missing package manager.

The http.server module comes with python 3 by default.
If you're using python 2, use SimpleHTTPServer instead.

like image 125
stranac Avatar answered May 23 '26 09:05

stranac