Printing Python version in output

前端 未结 5 1109
清歌不尽
清歌不尽 2020-11-30 17:07

How can I print the version number of the current Python installation from my script?

5条回答
  •  抹茶落季
    2020-11-30 17:37

    If you are using jupyter notebook Try:

    !python --version
    

    If you are using terminal Try:

     python --version
    

提交回复
热议问题