No module named 'conda'
mattshma opened this issue · 0 comments
mattshma commented
conda 报错如下:
Traceback (most recent call last):
File "/opt/app/conda/bin/conda", line 7, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'
查看了下 PATH,也是对的,测试了几条 conda 安装包的命令,发现在安装 lightgbm 后,才会出现这个问题:
# conda install --quiet --yes -c conda-forge lightgbm=2.2.1
...
The following packages will be DOWNGRADED:
python: 3.7.0-hc3d631a_0 --> 3.6.7-h357f687_1005 conda-forge
....
# conda install --quiet --yes -c conda-forge xgboost=0.80
Traceback (most recent call last):
File "/opt/app/conda/bin/conda", line 7, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'
猜测是由于对 python 的修改引起的,真实原因暂没时间验证。