安装卡桑德拉驱动程序时出错

2024-09-30 18:32:48 发布

您现在位置: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\

有人知道这件事吗?我错过了什么?在

当我运行pip install cassandra驱动程序时,也出现了以下错误

Failed building wheel for cassandra-driver
Failed cleaning build dir for cassandra-driver

python版本:3.3


Tags: installpipbuildlocaldriver错误驱动程序record
1条回答
网友
1楼 · 发布于 2024-09-30 18:32:48

我在一个缺少编译器路径的环境中尝试了它,并观察到了类似的情况。我认为这是setuptools错误处理中的一个问题,因为它没有找到预期的结果。我发现的最简单的方法是使用与Visual Studio一起安装的VS命令提示符快捷方式:

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).

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

相关问题 更多 >