在Windows下将pypi的kerberos添加到Anaconda

时间:2014-09-03 21:28:13

标签: windows kerberos anaconda pypi conda

完成菜鸟所以希望逐步解决。

我想将kerberos包添加到Anaconda但不知道如何操作。

我尝试过使用conda命令行: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

1 个答案:

答案 0 :(得分:0)

Anaconda comes with kerberos_sspi“API级别等同于kerberos python包,但不使用MIT krb5包,而是使用windows sspi功能”。

如果您的Anaconda旧版本未安装template<unsigned...> struct Seq { typedef int value_type; }; template<unsigned max, unsigned... numbers> struct _ExpandSeq : _ExpandSeq<max-1, max-1, numbers...> {}; template<unsigned... numbers> struct _ExpandSeq<0, numbers...> { typedef Seq<numbers...> type; }; template<unsigned max> using Sequence = typename _ExpandSeq<max>::type; ,则可以通过kerberos_sspi安装