操作系统:window 10
python:官网下载 python-3.6.8-embed-amd64.zip
安装步骤:解压到d:\python-3.6.8,配置环境变量PATH: d:\python-3.6.8;d:\python-3.6.8\scripts
下载pip: https://bootstrap.pypa.io/pip/3.6/get-pip.py
安装pip:python get-pip.py
测试
pip
错误:“No module named pip”
百度网上说:python -m ensurepip,python -m pip install --upgrade pip 均不成功
最后解决
编辑 python36._pth
最后加上 Lib\site-packages
python36.zip
.
# Uncomment to run site.main() automatically
#import site
Lib\site-packages