admin管理员组文章数量:1320864
Python appears to be in my local programs:
C:\Users\Owner>where python
C:\Users\Owner\AppData\Local\Programs\Python\Python313\python.exe C:\Users\Owner\AppData\Local\Microsoft\WindowsApps\python.exe
But my pip install put pytest in 'roaming' instead of 'local':
PS C:\Users\Owner> python -m pip install pytest
Requirement already satisfied: pytest in c:\users\owner\appdata\roaming\python\python313\site-packages (8.3.4)
When I run pytest from the folder with my file, I get:
PS C:\Users\Owner\Desktop\python_work\chapter_11> pytest
pytest : The term 'pytest' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Is this because pytest and python are in different folders? If so, how do I fix it?
If not, what is the problem?
本文标签: pythonIs pytest not working because it is installed in the wrong folderStack Overflow
版权声明:本文标题:python - Is pytest not working because it is installed in the wrong folder? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742087939a2420094.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论