在Windows下将pypi中的kerberos添加到Anaconda [英] Add kerberos from pypi to Anaconda under Windows

查看:106
本文介绍了在Windows下将pypi中的kerberos添加到Anaconda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完整的菜鸟,请逐步解决.

Complete noob so would appreciate a step-by-step solution.

我想将 kerberos 包添加到Anaconda,但不知道该怎么做

I would like to add kerberos package to Anaconda but don't know how to do it.

我已经尝试过使用conda命令行:pip install kerberos,但是失败了.

I have tried the using conda command line: pip install kerberos but it failed.

有人知道怎么做吗?

这是来自pip的错误日志:

This is the error log from 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

推荐答案

Anaconda 附带 kerberos_sspi ,其"API级别等同于kerberos python软件包,但不使用MIT krb5软件包,它使用Windows sspi功能".

Anaconda comes with the kerberos_sspi which is "API level equivalent to the kerberos python package but instead of using the MIT krb5 package it uses the windows sspi functionality".

如果您有未安装kerberos_sspi的旧版本的Anaconda,则可以通过conda install -c anaconda kerberos_sspi

If you have an older version of Anaconda that does not have kerberos_sspi installed, you can install it via conda install -c anaconda kerberos_sspi

这篇关于在Windows下将pypi中的kerberos添加到Anaconda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆