错误:
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "e:\miniconda3\lib\abc.py", line 64, in <module>
ModuleNotFoundError: No module named '_abc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "e:\miniconda3\lib\io.py", line 52, in <module>
File "e:\miniconda3\lib\abc.py", line 68, in <module>
File "e:\miniconda3\lib\_py_abc.py", line 35
def __new__(mcls, name, bases, namespace, /, **kwargs):
^
SyntaxError: invalid syntax
导致的缘由:
pip install XXX
分析:
错误的大致原因就是没有_abc,再往上看他的路径并不是我的python路径,然后以为是环境变量的原因,但是改完调完位置之后还是这个错误,在这之前我刚把3.9的卸载,重装的3.6的python,应该是pip不认识新路径了吧大概
解决办法:
#修改语句,添加python -m
python -m pip install XXX