我正在关注 pybuilder 的以下 helloworld 教程:https ://pybuilder.io/documentation/tutorial 我使用的是 Mac。我已经用 brew 安装了 python。我能够运行以下命令:
$ virtualenv venv
$ source venv/bin/activate
$ pip install pybuilder
$ pyb --start-project
我创建 helloworld 文件并运行:
$ pyb
我收到以下错误:
ERROR: The executable /Users/myusername/projects/learning/pybuilderexample/helloworld/.pybuilder/plugins/cpython-3.9.1.final.0/bin/python is not functioning
ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.9/3.9.1_1/Frameworks/Python.framework/Versions/3.9' (should be '/Users/myusername/projects/learning/pybuilder-example/helloworld/.pybuilder/plugins/cpython-3.9.1.final.0')
ERROR: virtualenv is not compatible with this system or executable
谁能帮我克服这个错误?我认为这与我安装 python (brew) 的方式有关。但是,我不确定下一步该做什么。