关于此主题的堆栈溢出已经有两个帖子; 但是,他们都没有解决或解决我的具体情况.
我已经安装了pytest via pip install pytest.我也能用Python导入库.
问题是,当我尝试py.test在终端中使用该命令时,我得到了py.test: command not found.
有没有人知道为什么我无法在终端中使用该命令?
编辑:它甚至显示为已安装的包:
$ pip list
cycler (0.9.0)
matplotlib (1.5.1)
numpy (1.10.1)
pip (8.1.0)
py (1.4.31)
pyparsing (2.0.7)
pytest (2.9.0)
python-dateutil (2.4.2)
pytz (2015.7)
scipy (0.17.0)
setuptools (7.0)
six (1.10.0)
tensorflow (0.5.0)
vboxapi (1.0)
wheel (0.26.0)
Run Code Online (Sandbox Code Playgroud)