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.
精彩评论