尝试使用 Git Bash 在 Windows 10 上运行 Python 3.7 时,出现以下错误:
$ python --version
bash: /c/Users/Name/AppData/Local/Microsoft/WindowsApps/python: Permission denied
Run Code Online (Sandbox Code Playgroud)
该怎么办?
编辑:我通过使用 scoop 和使用 cmder 而不是 Git Bash 安装 python 来解决(或者更确切地说是规避)这个问题。
我正在尝试使用以下命令编译 proto 文件:
protoc -I=. --python_out=. ./message.proto --proto_path=.
Run Code Online (Sandbox Code Playgroud)
但我收到这个错误:
--proto_path passed empty directory name. (Use "." for current directory.)
Run Code Online (Sandbox Code Playgroud)
该怎么办?