以MAC中的sublime text3 为例
打开New BuildingSystem
我的设置如下
{
"cmd": ["/Users/py503/venvs/scrapy_env/bin/python3.7", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
红色字段为:python虚拟环境
保存并重命名
以MAC中的sublime text3 为例
打开New BuildingSystem
我的设置如下
{
"cmd": ["/Users/py503/venvs/scrapy_env/bin/python3.7", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
红色字段为:python虚拟环境
保存并重命名