最后更新于2021年8月17日 19:15:54
Python用得少,写点小知识得了。
python下SimpleHTTPServer 用法
Simple HTTP Server 快速搭建http web服务+一键脚本
pip 损坏后的恢复:
背景:
ubuntu-server (或者通过pip install得到的)原装pip为 /usr/local/bin/pip
sudo apt install python-pip 得到的为/usr/bin/pip
一些不知名冲突导致pip挂掉
恢复:
sudo apt-get remove --purge python-pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python
参考:https://askubuntu.com/questions/642533/python-pip-broken-on-ubuntu