Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在windows中切换python3解释器_Python_Python 3.x_Pythoninterpreter - Fatal编程技术网

在windows中切换python3解释器

在windows中切换python3解释器,python,python-3.x,pythoninterpreter,Python,Python 3.x,Pythoninterpreter,我一直在使用Python34,并在windows的命令行中使用pip来安装我的软件包。现在我已经安装了python 36,但没有卸载python 34。但是,我无法使用pip将软件包安装到python 36中,因为它配置为python 34。这个问题的任何优雅的解决方案。我将添加我的评论作为答案,以便添加我的参考 使用此命令可以指定也要安装软件包的python版本。只需将“SomePackage”替换为您要安装的包名 py -3.6 -m pip install SomePackage 我在

我一直在使用Python34,并在windows的命令行中使用pip来安装我的软件包。现在我已经安装了python 36,但没有卸载python 34。但是,我无法使用pip将软件包安装到python 36中,因为它配置为python 34。这个问题的任何优雅的解决方案。

我将添加我的评论作为答案,以便添加我的参考

使用此命令可以指定也要安装软件包的python版本。只需将“SomePackage”替换为您要安装的包名

 py -3.6 -m pip install SomePackage
我在这上面找到了这个

编辑
这是给Windows的。对于Mac或Linux用户,切换到
py-3.6
python3.6

应该可以:py-3.6-m pip安装一些软件包如果我的答案是这个问题的解决方案,请接受我的答案好吗?谢谢