Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/283.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.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
如何让python 3.6使用visual studio 2017而不是2015?_Python_Python 3.x_Msbuild_Python 3.6 - Fatal编程技术网

如何让python 3.6使用visual studio 2017而不是2015?

如何让python 3.6使用visual studio 2017而不是2015?,python,python-3.x,msbuild,python-3.6,Python,Python 3.x,Msbuild,Python 3.6,我有Python 3.6和Visual Studio 2017,而不是2015,我想让pip3.6构建库使用VS2017而不是VS2015 PS:在安装VS2017时,我选择了VS2015更新3构建工具,但不幸的是,pip3.6没有找到它。所以我决定切换到VS2017构建工具。我使用了VS2017命令提示符并发布了pip install somelibrary,它很管用,但我希望能够在每个命令提示符窗口中执行此操作,就像我使用VS2015时一样。VS 2017构建工具不像2015年那样设置全局环

我有Python 3.6和Visual Studio 2017,而不是2015,我想让pip3.6构建库使用VS2017而不是VS2015


PS:在安装VS2017时,我选择了VS2015更新3构建工具,但不幸的是,pip3.6没有找到它。所以我决定切换到VS2017构建工具。我使用了VS2017命令提示符并发布了
pip install somelibrary
,它很管用,但我希望能够在每个命令提示符窗口中执行此操作,就像我使用VS2015时一样。

VS 2017构建工具不像2015年那样设置全局环境变量。设置此环境变量

VS150COMNTOOLS
到(64位Windows)

或(32位窗口)


您应该能够像VS 2015一样正确安装pip。

VS 2017构建工具不像2015那样设置全局环境变量。设置此环境变量

VS150COMNTOOLS
到(64位Windows)

或(32位窗口)

您应该能够像VS 2015一样正确安装pip

C:\Program Files\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\