簡體   English   中英

安裝django-mssql 1.5時出現錯誤

[英]Hitting error when installing django-mssql 1.5

沒有什么問題的線索-任何建議表示贊賞。

Python 3.3.1(32位),Django 1.6.2,Win7 Professional。

這是回溯:

  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將最新版本視為預發行版本,請使用

pip install django-mssql --pre 

安裝,它將在python 3+中正常工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM