简体   繁体   English

Cassandra驱动程序安装错误

[英]Cassandra driver error in installing

I am getting following error in installing Cassandra driver for python. 在为Python安装Cassandra驱动程序时出现以下错误。

Command "c:\python33\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\vmasama\\appdata\\local\\temp\\pip-build-we10p7\\cassandra-driver\\setup
.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n
', '\n'), __file__, 'exec'))" install --record c:\users\vmasama\appdata\local\te
mp\pip-olh8j5-record\install-record.txt --single-version-externally-managed --co
mpile" failed with error code 1 in c:\users\vmasama\appdata\local\temp\pip-build
-we10p7\cassandra-driver\

Any one have any idea about this ? 有人对此有任何想法吗? What am i missing ? 我想念什么?

Following errors were also there when i run pip install cassandra-driver 当我运行pip install cassandra-driver时,也出现以下错误

Failed building wheel for cassandra-driver Cassandra驱动程序的失败建筑轮子
Failed cleaning build dir for cassandra-driver cassandra驱动程序的清理构建目录失败

python version : 3.3 python版本:3.3

I tried it in an environment missing compiler paths and observed something similar. 我在缺少编译器路径的环境中进行了尝试,并观察到了类似的情况。 I think it's a problem in setuptools error handling when it doesn't find what it's expecting. 我认为找不到所需的东西是setuptools错误处理中的问题。 The easiest way I've found is to use the VS Command Prompt shortcut installed with Visual Studio: 我找到的最简单的方法是使用随Visual Studio一起安装的VS Command Prompt快捷方式:

Perhaps the easiest way to do this is to run the build/install from a Visual Studio Command Prompt (a shortcut installed with Visual Studio that sources the appropriate environment and presents a shell). 也许最简单的方法是从Visual Studio命令提示符(随Visual Studio安装的快捷方式来运行构建/安装,该快捷方式会提供适当的环境并提供一个shell)。

http://datastax.github.io/python-driver/installation.html#windows-installation-notes http://datastax.github.io/python-driver/installation.html#windows-installation-notes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM