我正在尝试使用graphene-django
,并且“六”包有一些问题。它已安装,但它是作为自己的包安装的,并且graphene-django
似乎在期待它django.utils
File "C:\Users\mjnic\.virtualenvs\phoenix-demo-C42C_PgQ\lib\site-packages\graphene_django\settings.py", line 18, in <module>
from django.utils import six
ImportError: cannot import name 'six' from 'django.utils' (C:\Users\mjnic\.virtualenvs\phoenix-demo-C42C_PgQ\lib\site-packages\django\utils\__init__.py)
六人之路:
>>> import six
>>> print(six.__file__)
C:\Users\mjnic\.virtualenvs\phoenix-demo-C42C_PgQ\lib\site-packages\six.py
我已经检查了源代码,graphene_django
并且settings.py
它似乎专门针对 django 路径。
This module provides the `graphene_settings` object, that is used to access
Graphene settings, checking for user settings first, then falling
back to the defaults.
"""
from __future__ import unicode_literals
from django.conf import settings
from django.test.signals import setting_changed
from django.utils import six
我正在使用 pipenv 来管理我的环境,并且我已经卸载并重新安装了六个,现在多次尝试解决各种石墨烯包,但无济于事。
那么,我该如何移动安装six
,使其位于django.utils.six