我在conda环境中使用pip安装软件包。
pip install pygame
Requirement already satisfied: pygame in ./anaconda3/lib/python3.6/site-packages (1.9.4)
当前目录在哪里/Users/aptx4869
。但是,当我键入时conda list
,当前环境中什么也没有。它出什么问题了?这是环境所在的目录
/Users/aptx4869/anaconda3/envs/rl
我pygame
在根环境中删除并pip install pygame
在rl
conda环境中运行,我收到另一条消息。但pygame
仍然不显示conda list
pip install pygame
Collecting pygame
Using cached https://files.pythonhosted.org/packages/bc/19/57bf1e9c72be4f7afc1add56cc717b7f7fe8ef1b6b5fb58f031a06401d0f/pygame-1.9.4-cp36-cp36m-macosx_10_11_intel.whl
Installing collected packages: pygame
Successfully installed pygame-1.9.4
(rl)
最后请注意(rl)
,该pip
命令仍安装pygame
在根环境中
原因很简单,因为我没有在dl
环境中安装python和pip ,而conda在根环境中隐式使用python和pippip install ...
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句