英文:
pytest' is not recognized as an internal or external command, operable program or batch file
问题
我刚开始学习Python Selenium的概念。我安装了最新版本的pytest 7.2.1。但在检查是否已安装时,我遇到了以下错误。请您能协助吗?错误信息如下:'pytest' 不被识别为内部或外部命令,可执行程序或批处理文件。为了练习目的,我尝试了一下。
英文:
I just started learning python selenium concepts.
I installed pytest 7.2.1 latest version. and while checking whether installed or not iam getting below error.
Could you please assist.
'pytest' is not recognized as an internal or external command,
operable program or batch file.
for practice purpose i tried.
答案1
得分: 1
首先安装 pytest(如果已安装,请忽略此步骤):
$ python3 -m pip install pytest
然后执行以下操作:
~/yourproject $ python -m pytest <arguments>
在 Python 3.10.10 和 Windows 10 上进行测试。
英文:
First install pytest (if its already installed then ignore this):
$ python3 -m pip install pytest
Then do this:
~/yourproject $ python -m pytest <arguments>
Tested on Python 3.10.10 and Windows 10.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论