安装 django-mssql 1.5 时遇到错误



不知道问题是什么 - 任何建议表示赞赏。

Python 3.3.1(32位),Django 1.6.2,Win7专业版。

以下是回溯:

  Running setup.py egg_info for package django-mssql
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "c:usersstephe~1.sawappdatalocaltemppip_build_stephen.sawyer
        django-mssqlsetup.py", line 115, in <module>
        version=find_version("sqlserver_ado", "__init__.py"),
      File "c:usersstephe~1.sawappdatalocaltemppip_build_stephen.sawyer
        django-mssqlsetup.py", line 17, in find_version
        version_file, re.M)
      File "C:Python33Libre.py", line 161, in search
        return _compile(pattern, flags).search(string)
    TypeError: can't use a string pattern on a bytes-like object
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
  File "<string>", line 16, in <module>
  File "c:usersstephe~1.sawappdatalocaltemppip_build_stephen.sawyerdjango
-mssqlsetup.py", line 115, in <module>
    version=find_version("sqlserver_ado", "__init__.py"),
  File "c:usersstephe~1.sawappdatalocaltemppip_build_stephen.sawyerdjango
-mssqlsetup.py", line 17, in find_version
    version_file, re.M)
  File "C:Python33Libre.py", line 161, in search
    return _compile(pattern, flags).search(string)
TypeError: can't use a string pattern on a bytes-like object

PIP 将最新版本视为预发布版本,请使用

pip install django-mssql --pre 

安装,它将在 Python 3+ 中正常工作。

相关内容

  • 没有找到相关文章

最新更新