django-rest-auth installition错误

时间:2017-12-27 11:36:23

标签: django django-rest-framework django-rest-auth django-rest-framework-jwt

我试图在我的应用程序中安装django -rest-auth(venv)

pip install django-rest-auth

但是我收到了这个错误。为什么? 注意:** django和djangorestframwork已经安装

pip install django-rest-auth
Collecting django-rest-auth
  Using cached django-rest-auth-0.9.2.tar.gz
Requirement already satisfied: Django>=1.8.0 in ./venv/lib/python3.5/site-packages (from django-rest-auth)
Requirement already satisfied: djangorestframework>=3.1.0 in ./venv/lib/python3.5/site-packages (from django-rest-auth)
Requirement already satisfied: six>=1.9.0 in ./venv/lib/python3.5/site-packages (from django-rest-auth)
Requirement already satisfied: pytz in ./venv/lib/python3.5/site-packages (from Django>=1.8.0->django-rest-auth)
Building wheels for collected packages: django-rest-auth
  Running setup.py bdist_wheel for django-rest-auth ... error
  Complete output from command /home/mohammadreza/PycharmProjects/mohammadrezaDjangoApp/Django/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xl9ds058/django-rest-auth/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp5sk4s13wpip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for django-rest-auth
  Running setup.py clean for django-rest-auth
Failed to build django-rest-auth
Installing collected packages: django-rest-auth
  Running setup.py install for django-rest-auth ... done
Successfully installed django-rest-auth-0.9.2

2 个答案:

答案 0 :(得分:0)

只需安装滚轮套件似乎可以解决该问题。 pip install wheel,然后再pip install django-rest-auth

答案 1 :(得分:-1)

在收到Successfully installed django-rest-auth-0.9.2消息时忽略错误