我无法安装 Flask-Spyne,在安装过程中出现 TypeError

I cannot install Flask-Spyne, during instalation TypeError appear

我正在尝试在 Windows 上安装 python 模块 Flask-Spyne,当我键入 pip install Flask-Spyne 时,在 Sec-Wall 上出现收集 TypeError。

我在 Windows 10

上使用 Python 3.5.1

就是这样:

C:\Windows\system32>pip install flask-spyne
Collecting flask-spyne
Using cached Flask-Spyne-0.2.tar.gz

Collecting flask (from flask-spyne)
Using cached Flask-0.11.1-py2.py3-none-any.whl

Collecting spyne (from flask-spyne)
Using cached spyne-2.12.11.tar.gz

Collecting sec-wall (from flask-spyne)
Using cached sec-wall-1.2.tar.gz

    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\SIVK~1\AppData\Local\Temp\pip-build-mydzld6p\sec-wall\setup.py", line 30, in <module>
        packages = find_packages(b"src"),
      File "c:\program files (x86)\python35-32\lib\site-packages\setuptools\__init__.py", line 51, in find
        out = cls._find_packages_iter(convert_path(where))
      File "c:\program files (x86)\python35-32\lib\distutils\util.py", line 129, in convert_path
        paths = pathname.split('/')
    TypeError: a bytes-like object is required, not 'str'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\SIVK~1\AppData\Local\Temp\pip-build-mydzld6p\sec-wall\

我尝试解决 python setup.py egg_info 错误,但没有解决。 我试着查看那个 TypeError,没有。

有人知道怎么解决吗?对于任何建议,我很高兴:)

PS:如果有帮助,当我输入 pip install suds 时,会出现:

C:\Windows\system32>pip install suds
Collecting suds
  Using cached suds-0.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\SIVK~1\AppData\Local\Temp\pip-build-l7jpgeg4\suds\setup.py", line 20, in <module>
        import suds
      File "C:\Users\SIVK~1\AppData\Local\Temp\pip-build-l7jpgeg4\suds\suds\__init__.py", line 154, in <module>
        import client
    ImportError: No module named 'client'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\SIVK~1\AppData\Local\Temp\pip-build-l7jpgeg4\suds\

根据 Spyne 的 documentation,已知它可以与 Python 版本 2.6 一起使用。和 2.7,但未测试 Python 3 支持。

此外,您遇到的错误 TypeError: a bytes-like object is required, not 'str' 是人们在将代码从 python 2.7 迁移到 python 3 时经常遇到的错误。

我可以在为 python 3.5 安装软件包时重现您的错误。我在为 Python 2.7.

安装时没有遇到任何错误

所以,也许你必须切换到 Python 2.7,and/or 向包的开发人员报告问题。