无法在Windows(Windows Store)的Git Bash中安装pylint [英] Cannot install pylint in Git Bash on Windows (Windows Store)
问题描述
我通过Windows应用商店安装了Python 3.7.我在VScode中选择了此运行时环境,而VScode坚持让我讨厌安装pylint插件(或另一个linting插件).它尝试在Git Bash终端(MINGW64)中运行此命令:
I installed Python 3.7 via the Windows Store. I have selected this runtime environment in VScode, and VScode insists on nagging me about installing the pylint addon (or another linting addon). It attempts to run this command in a Git Bash terminal (MINGW64):
$ C:/Users/rjamd/AppData/Local/Microsoft/WindowsApps/python.exe -m pip install -U pylint --user
...被拒绝运行许可:
...which is denied permission to run:
bash: C:/Users/rjamd/AppData/Local/Microsoft/WindowsApps/python.exe:
Permission denied
好像他们并没有真正考虑过分配方法会被权限搞砸!
Seems like they didn't really think about the distribution method screwing with permissions!
我不应该遇到 any 权限问题,因为这试图在我具有完全权限的本地用户目录中运行.
I should not be getting any permissions issues, because this is attempting to run in my local user directory, which I have full permissions on.
完全权限授予:
- 系统(组)
- rjamd(我的用户)
- 管理员(组)
一切似乎都井然有序.
更新:
- Python根本不会在Git bash终端中运行,但会在CMD中运行(无需以admin身份运行CMD).
- Git bash无法使用
which --all python
找到任何其他Python实例.它连续两次打印相同的可执行路径.我有3个conda环境,以及新Python环境的两个不同路径("AppData"和"Program Files"),所有这些路径均显示在VScode的环境选择菜单中.
- Python will not run at all in the Git bash terminal, but it runs in CMD (without running CMD as admin).
- Git bash cannot find any other instances of Python using
which --all python
. It prints the same executable path twice in a row. I have 3 conda environments, and two different paths for the new Python environment ("AppData" and "Program Files"), all of which show up in VScode's environment selection menu.
推荐答案
我从Windows设置中禁用了python的执行别名,从而获得了解决方案. https://github.com/gmacario/spaceappschallenge-2019/issues/6.关于管理应用程序执行别名".
I got a solution by disabling execution aliases of python from windows setting. https://github.com/gmacario/spaceappschallenge-2019/issues/6. It's about "manage app execution aliases" Thanks.
这篇关于无法在Windows(Windows Store)的Git Bash中安装pylint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!