在WIN10下没有Admin权限,下载Windows embeddable package的python包并解压,设置user path后。
下载pip安装脚本:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
安装pip:
python get-pip.py
成功安装之后
设置pip的user path,就是之前的python的path加\Scripts
这时候敲“pip -v”,会出现以下错误:
ModuleNotFoundError: No module named 'pip'
百思不得其解,后查阅资料,有以下解决方案:
EITHER just uncomment string
import site
inside file pythonXX._pth OR copy folders (at least pip) from the newly-created folder Lib/site-packages/ into pythonXX.zip
本人用的以上第一种方法,成功搞定。