不行啊
C:\WINDOWS\system32>python
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> m pip install
File "<stdin>", line 1
m pip install
^
SyntaxError: invalid syntax
>>> m pip install -- upgrade pip
File "<stdin>", line 1
m pip install -- upgrade pip
^
SyntaxError: invalid syntax
2020-04-16 15:23:20
同学你好:不要进入python环境,在Terminal中直接输入命令:python -m pip install --upgrade pip
2020-04-16 15:51:03
还是不行啊
C:\WINDOWS\system32>python -m pip install --upgrade pip
Traceback (most recent call last):
File "D:\Program Files\Python3\lib\runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "D:\Program Files\Python3\lib\runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "D:\Program Files\Python3\lib\runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "D:\Program Files\Python3\lib\site-packages\pip\__init__.py", line 13, in <module>
from pip.utils import get_installed_distributions, get_prog
File "D:\Program Files\Python3\lib\site-packages\pip\utils\__init__.py", line 22, in <module>
from pip._vendor import pkg_resources, six
File "D:\Program Files\Python3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1649, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
2020-04-16 20:21:10
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星