问题描述:
在进行pip list 时报错如下:
Traceback (most recent call last):
File “/home/yjq/miniconda3/envs/gluon/bin/pip”, line 5, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip._internal.cli.main’

解决方法:

重新升级安装pip即可

python3 -m pip install --upgrade pip

出现错误:

/home/yjq/miniconda3/bin/python3: No module named pip.main; ‘pip‘ is a package and cannot be directly executed