擅长:python、mysql、java
<p>首先,我要感谢班纳特回答了我的问题,让我能够找出问题所在。实际上,问题在于别名。当我使用apt-get安装cv2或pygame时,它们是为默认版本安装的,但是当我先下载安装程序安装任何包时(比如我安装了anaconda),它是为python2.7.11安装的,因为python在这个版本中有别名(即2.7.11)。所以,基本上要确保您要安装的默认版本是别名为“python”的版本,一切正常。我给默认版本起了别名“python”,然后通过安装程序安装了anaconda,现在它已经安装了默认版本。在</p>