小编was*_*eek的帖子

Python无法在git bash的命令行中运行

Python不会在git bash(Windows)中运行.当我在命令行中键入python时,它将我带到一个空白行,而不是说它已经像在Powershell中那样输入了python 2.7.10.它没有给我一个错误消息,但python只是不运行.

我已经确定了PATH中的环境变量c:\python27.我还能检查什么?


发生此问题的会话如下所示:

user@hostname MINGW64 ~
$ type python
python is /c/Python27/python

user@hostname MINGW64 ~
$ python
Run Code Online (Sandbox Code Playgroud)

......坐在那里而不回到提示.

python windows git command-line git-bash

192
推荐指数
11
解决办法
11万
查看次数

Visual Studio代码,使用WSL进行Python linting(适用于Linux的Windows子系统)

我在64位PC上使用Windows 10.最近,我开始在Windows上使用VS Code和Ubuntu Bash.一切都很好,除了linting.我试图让它与pylint和pep8一起使用,但它们都没有用.我认为这个问题是由于棉绒的位置造成的.但是,我无法弄清楚如何解决问题.您可以检查我的pylint设置:

// Whether to lint Python files using pylint.
"python.linting.pylintEnabled": true,

// Severity of Pylint message type 'Convention/C'.
"python.linting.pylintCategorySeverity.convention": "Information",

// Severity of Pylint message type 'Refactor/R'.
"python.linting.pylintCategorySeverity.refactor": "Hint",

// Severity of Pylint message type 'Warning/W'.
"python.linting.pylintCategorySeverity.warning": "Warning",

// Severity of Pylint message type 'Error/E'.
"python.linting.pylintCategorySeverity.error": "Error",

// Severity of Pylint message type 'Fatal/F'.
"python.linting.pylintCategorySeverity.fatal": "Error",

// Path to Pylint, you can use a custom version of pylint by modifying this 
// setting to include the full …
Run Code Online (Sandbox Code Playgroud)

python visual-studio-code windows-subsystem-for-linux vscode-settings bash-on-windows

11
推荐指数
1
解决办法
3942
查看次数