不知道问题出在哪里--任何建议都很感激。
Python3.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:\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发布于 2014-08-11 19:56:01
PIP将最新版本视为预发布版,请使用
pip install django-mssql --pre 在python 3+中,它可以很好地进行安装。
https://stackoverflow.com/questions/22872741
复制相似问题