【发布时间】:2021-12-16 05:43:58
【问题描述】:
我最近不得不重置我的机器,所以必须重新安装所有东西。
我想使用PyTest 运行Python 文件。
Bash 终端:
me@PF2DCSXD:/mnt/c/Users/dabell/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ pytest -s test_composite_key.py
Command 'pytest' not found, but can be installed with:
sudo apt install python-pytest
me@PF2DCSXD:/mnt/c/Users/dabell/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ sudo apt install python-pytest
[sudo] password for danielbellhv:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pytest
我能够安装pip,按照这篇文章的Solution。
如果还有什么我可以添加到帖子中的,请告诉我。
【问题讨论】:
标签: python installation package dependencies pytest