2017年6月19日 星期一

[ Python 常見問題 ] How do I update pip itself from inside my virtual environment?

Source From Here
Question
I'm able to update pip-managed packages, but how do I update pip itself? According to pip --version, I currently have pip 1.1 installed in my virtual env and I want to update to the latest version.

How-To
pip is just a PyPI package like any other; you could use it to upgrade itself the same way you would upgrade any package:
# pip install --upgrade pip


沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...