一封来自PyPI到蟒蛇的Kerberos加入Windows下(Add kerberos from p

2019-10-20 21:19发布

完整的小白这样会喜欢一步一步的解决方案。

我想补充的Kerberos包蟒蛇,但不知道该怎么做。

我曾尝试使用畅达命令行: pip install kerberos ,但失败了。

有谁知道如何做呢?

这是从PIP错误日志:

C:\Users\woodas\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat -DMS_WIN64 -mdll -O -Wall -IC:\Users\woodas\AppData\Local\Continuum\Anaconda\include -IC:\Users\woodas\AppData\Local\Continuum\Anaconda\PC -c src/kerberos.c -o build\temp.win-amd64-2.7\Release\src\kerberos.o '{' is not recognized as an internal or external command, operable program or batch file.    
    gcc.exe: error: '{': No such file or directory
    gcc.exe: error: is: No such file or directory
    gcc.exe: error: not: No such file or directory
    gcc.exe: error: recognized: No such file or directory
    gcc.exe: error: as: No such file or directory
    gcc.exe: error: an: No such file or directory
    gcc.exe: error: internal: No such file or directory
    gcc.exe: error: or: No such file or directory
    gcc.exe: error: external: No such file or directory
    gcc.exe: error: command,: No such file or directory
    gcc.exe: error: operable: No such file or directory
    gcc.exe: error: program: No such file or directory
    gcc.exe: error: or: No such file or directory
    gcc.exe: error: batch: No such file or directory
    gcc.exe: error: file.: No such file or directory
    error: command   'C:\\Users\\woodas\\AppData\\Local\\Continuum\\Anaconda\\Scripts\\gcc.bat' failed with exit status 1  
    Complete output from command   C:\Users\woodas\AppData\Local\Continuum\Anaconda\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\woodas\\appdata\\local\\temp\\pip_build_woodas\\kerberos\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\woodas\appdata\local\temp\pip-guybp4-record\install-record.txt --single-version-externally-managed --compile:  
    running install
running build
running build_ext
building 'kerberos' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
C:\Users\woodas\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat -DMS_WIN64 -mdll -O -Wall -IC:\Users\woodas\AppData\Local\Continuum\Anaconda\include -IC:\Users\woodas\AppData\Local\Continuum\Anaconda\PC -c src/kerberos.c -o build\temp.win-amd64-2.7\Release\src\kerberos.o '{' is not recognized as an internal or external command, operable program or batch file.
gcc.exe: error: '{': No such file or directory
gcc.exe: error: is: No such file or directory
gcc.exe: error: not: No such file or directory
gcc.exe: error: recognized: No such file or directory
gcc.exe: error: as: No such file or directory
gcc.exe: error: an: No such file or directory
gcc.exe: error: internal: No such file or directory
gcc.exe: error: or: No such file or directory
gcc.exe: error: external: No such file or directory
gcc.exe: error: command,: No such file or directory
gcc.exe: error: operable: No such file or directory
gcc.exe: error: program: No such file or directory
gcc.exe: error: or: No such file or directory
gcc.exe: error: batch: No such file or directory
gcc.exe: error: file.: No such file or directory
error: command 'C:\\Users\\woodas\\AppData\\Local\\Continuum\\Anaconda\\Scripts\\gcc.bat' failed with exit status 1

Answer 1:

蟒蛇自带的kerberos_sspi这是“API级别等同于Kerberos的Python包,但不是使用它使用了Windows SSPI功能MIT KRB5包”。

如果你有蟒蛇的旧版本不具有kerberos_sspi安装,您可以通过安装它conda install -c anaconda kerberos_sspi



文章来源: Add kerberos from pypi to Anaconda under Windows