wingIDE设置python虚拟环境并运行

xiaoxiao2021-02-28  94

project=>project properties

用代码验证当前python环境:

import sys print sys.prefix print("hello world") print(sys.executable) print("########################33")

按F5运行得到

/home/appleyuchi/.virtualenvs/python2.7 hello world /home/appleyuchi/.virtualenvs/python2.7/bin/python2.7 ########################33

说明所使用的python来自虚拟环境。

Done!

转载请注明原文地址: https://www.6miu.com/read-81168.html

最新回复(0)