python學習-python小工具
- 2020 年 1 月 3 日
- 筆記
一、啟動python下載伺服器
pyththon -m SimpleHTTPServer 執行該命令會在當前目錄下啟動一個文件下載伺服器,默認打開8000埠

二、安裝pip
wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz tar -xvf pip-10.0.1.tar.gz cd pip-10.0.1 python setup.py install
三、修改pip鏡像源加速安裝
vim ~/.pip/pip.conf [global] index-url = https://pypi.douban.com/simple/