简体   繁体   English

安装django-mssql 1.5时出现错误

[英]Hitting error when installing django-mssql 1.5

No clue as to what the problem is - any suggestions appreciated. 没有什么问题的线索-任何建议表示赞赏。

Python 3.3.1 (32-bit), Django 1.6.2, Win7 professional. Python 3.3.1(32位),Django 1.6.2,Win7 Professional。

Here is the traceback: 这是回溯:

  Running setup.py egg_info for package django-mssql
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "c:\users\stephe~1.saw\appdata\local\temp\pip_build_stephen.sawyer\
        django-mssql\setup.py", line 115, in <module>
        version=find_version("sqlserver_ado", "__init__.py"),
      File "c:\users\stephe~1.saw\appdata\local\temp\pip_build_stephen.sawyer\
        django-mssql\setup.py", line 17, in find_version
        version_file, re.M)
      File "C:\Python33\Lib\re.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:\users\stephe~1.saw\appdata\local\temp\pip_build_stephen.sawyer\django
-mssql\setup.py", line 115, in <module>

    version=find_version("sqlserver_ado", "__init__.py"),

  File "c:\users\stephe~1.saw\appdata\local\temp\pip_build_stephen.sawyer\django
-mssql\setup.py", line 17, in find_version

    version_file, re.M)

  File "C:\Python33\Lib\re.py", line 161, in search

    return _compile(pattern, flags).search(string)

TypeError: can't use a string pattern on a bytes-like object

PIP sees the latest version as a pre-release, use PIP将最新版本视为预发行版本,请使用

pip install django-mssql --pre 

to install and it will work fine in python 3+. 安装,它将在python 3+中正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM