安装
seaborn
时,mamba 说它已经存在。然而尝试将其导入我的 python 解释器(曼巴解释器)失败了:
(base) ➜ materials git:(main) ✗ mamba install seaborn
Looking for: ['seaborn']
conda-forge/linux-64 Using cache
conda-forge/noarch Using cache
Pinned packages:
- python 3.10.*
Transaction
Prefix: /home/mathurin/mambaforge
All requested packages already installed
(base) ➜ materials git:(main) ✗ python -m seaborn
/home/mathurin/mambaforge/bin/python: No module named seaborn
然而,似乎一切都发生在我的
mambaforge
文件夹中,所以它是正确的路径和解释器?
我不太确定根本原因,但该软件包已安装两次,分别是
pip
和 mamba
。运行 pip uninstall seaborn
和 mamba uninstall seaborn
允许之后进行干净的重新安装。