ModuleNotFoundError: No module named 'pip'
今天使用pip安装geos时遇到
pip install geos
Traceback (most recent call last):
File "d:\python\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\python\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Python\Python36\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
解决方法:
python -m ensurepip
python -m pip install --upgrade pip