从GitBash执行pytest

2024-09-29 23:30:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我在从GitBash执行pytest时遇到问题。 在GitBash中,im位于pytest和.py文件的目录中。在GitBash中编写pytest会给我bash: pytest: command not found。我知道我可以从PyChamr的终端执行pytest,但是使用Bash执行的pytest并不舒服。 我在互联网上查找发现,pytest安装在venv中,这可能会导致一些问题


Tags: 文件py目录bash终端venvpytestnot

热门问题