在特定版本的python上安装python包numpy
我的机器上安装了两个版本的在特定版本的python上安装python包numpy,python,numpy,Python,Numpy,我的机器上安装了两个版本的Python。版本号为3.4和2.7.2 但是,当我设法python--version时,我得到了以下输出,这也是预期的输出: Python 2.7.2 但是,当我说pip install numpy时。包numpy安装在我安装的地方python3.4: Requirement already satisfied: numpy in c:\python\lib\site-packages 如何使numpy安装在python2.7.2中。Python2.7.2的位置是
Python
。版本号为3.4
和2.7.2
但是,当我设法python--version
时,我得到了以下输出,这也是预期的输出:
Python 2.7.2
但是,当我说pip install numpy
时。包numpy安装在我安装的地方python3.4
:
Requirement already satisfied: numpy in c:\python\lib\site-packages
如何使
numpy
安装在python2.7.2
中。Python2.7.2的位置是C:\Python27
您使用的是anaconda还是虚拟环境?我认为它的虚拟环境。我怎么检查这个?我是一个新手当你想使用Python3.4而不是2.7时你会怎么做?我这样做是为了将Python2.7virtualenv-venv-python=C:\Python27\python.exe
。所以,我使用的是虚拟的,可能的复制品