开发者

How do I specify which version of python I want to use with make?

开发者 https://www.devze.com 2023-03-03 06:20 出处:网络
How do I specify which version of python 开发者_开发技巧I want to use with make?Typically python is the name of the system\'s default Python version, but all installed versions are also available with

How do I specify which version of python 开发者_开发技巧I want to use with make?


Typically python is the name of the system's default Python version, but all installed versions are also available with names like python2.7 or python3.2. You can use those names in a command in a Makefile, or you can put them on the #! line of a Python script if you want to invoke it that way.


A makefile just calls a command, you can check what python version is using calling whereis python (on UNIX) or checking the PATH environment (Windows). To override the default python you can make the call with the absolute path... just guessing anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消