[英]How to make python 3.6 use visual studio 2017 instead of 2015?
I have Python 3.6 and Visual Studio 2017, not 2015 and I want to make pip3.6 build libraries use VS2017 instead of VS2015. 我有Python 3.6和Visual Studio 2017,而不是2015年,我想让pip3.6构建库使用VS2017而不是VS2015。
PS: When installing VS2017, I chose VS2015 Update 3 build tools, but unfortunately pip3.6 does NOT find it. PS:安装VS2017时,我选择了VS2015 Update 3构建工具,但遗憾的是pip3.6找不到它。 So I decided to switch to VS2017 build tools.
所以我决定切换到VS2017构建工具。 I used VS2017 command prompt and issued
pip install somelibrary
and it worked, but I want to be able to do this in every command prompt window like the time I had VS2015. 我使用了VS2017命令提示符并发布了
pip install somelibrary
并且它工作正常,但我希望能够在每个命令提示符窗口中执行此操作,就像我使用VS2015时一样。
VS 2017 Build Tools does not set up global environment variables as 2015 does. VS 2017 Build Tools不像2015年那样设置全局环境变量。 Set this environment variable
设置此环境变量
VS150COMNTOOLS
to (64-bit Windows) 到(64位Windows)
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\
or (32-bit Windows) 或(32位Windows)
C:\Program Files\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\
and you should be able to pip install correctly as with VS 2015. 你应该能够像VS 2015一样正确地进行密码安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.