Pip Wheel 和覆盖范围:找不到命令错误

Pip Wheel and coverage: command not found error

我想在我的 Linux 服务器上使用轮子,因为它看起来更快,但是当我这样做时:

pip install wheel    
pip wheel -r requirements_dev.txt

其中包含以下包

nose
django_coverage
coverage

我得到 覆盖范围:找不到命令,就好像它没有被安装一样。

如果找不到用于 pip 安装的轮子或者我没有正确 understood/setup 是否有回退?

你能试试这个吗?

virtualenv venv
source venv/bin/activate
pip -r install requirement.txt

也可以通过使用 wheel 得到这个:-

pip wheel -r check.txt
Collecting nose (from -r check.txt (line 1))
  Using cached nose-1.3.7-py2-none-any.whl
  Saved ./nose-1.3.7-py2-none-any.whl
Collecting django_coverage (from -r check.txt (line 2))
  Saved ./django_coverage-1.2.4-cp27-none-any.whl
Collecting coverage (from -r check.txt (line 3))
  Using cached coverage-4.2-cp27-cp27m-macosx_10_10_x86_64.whl
  Saved ./coverage-4.2-cp27-cp27m-macosx_10_10_x86_64.whl
Skipping nose, due to already being wheel.
Skipping django-coverage, due to already being wheel.
Skipping coverage, due to already being wheel.

从 wheels 安装是 pip 默认已经做的事情。 pip wheel 用于根据您的需求文件创建 车轮。