簡體   English   中英

如何找到我的Python安裝中的VM?

[英]How to find out which VM i have in my Python installation?

我在我的電腦上安裝了Python。 如何找出它附帶的VM。

是cpython還是ipython還是jpython?

import platform
platform.python_implementation()

從文檔:

platform.python_implementation()

     Returns a string identifying the Python implementation.
     Possible return values are: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’.

http://docs.python.org/2/library/platform.html

在命令提示符下運行它

python -c“來自平台導入python_implementation; print python_implementation()”

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM