Conda列表未在虚拟环境中显示软件包

时间:2020-06-17 00:21:49

标签: python anaconda

我刚开始使用虚拟环境,我只是尝试将pygame安装到我的虚拟环境中,然后使用conda list查看它是否已成功安装,但未显示任何软件包。

(test) C:\Users\Owner>pip install pygame
Collecting pygame
  Downloading pygame-1.9.6-cp37-cp37m-win_amd64.whl (4.3 MB)
     |████████████████████████████████| 4.3 MB 3.3 MB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.6

(test) C:\Users\Owner>conda list
# packages in environment at C:\Users\Owner\Anaconda3\envs\test:
#
# Name                    Version                   Build  Channel

(test) C:\Users\Owner>

1 个答案:

答案 0 :(得分:0)

当我创建一个新的虚拟环境时,我没有指定我要使用的python版本。我认为它只会使用最新版本,因为您可以使用多种语言(python,r)创建venv,而需要指定python == 3.7