我的python安装工作正常,我尝试安装librabbitmq
。
以下是pip的输出:
Downloading/unpacking librabbitmq
Running setup.py (path:d:\daniel\appdata\local\temp\pip_build_Daniel\librabbitmq\setup.py)egg_info for package librabbitmq
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'
Installing collected packages: librabbitmq
Running setup.py install for librabbitmq
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'
Successfully installed librabbitmq
当我尝试在python文件中导入它时,它会给出:
ImportError: No module named librabbitmq
我已经检查过的事情:
C:\Anaconda\libs\site-packages
中存储的文件夹/文件的权限可以提供足够的访问权限问题是什么?
更新
这就是我所处的位置:我已经构建了rabbitmq dll文件,并且在路径中。我通过将connection.c
更改为unistd.h
将winsock2.h
文件转换为编译。我现在收到错误:
fatal error LNK1104: cannot open file 'python27.lib'
我不知道如何解决这个问题。
因为事实证明实际上并不支持windows,所以我也接受任何与rabbitmq接口的python模块作为答案,虽然有些C模块接口(或类似的东西同样快速。我已经分析了,我的代码)目前80%的时间花在鼠兔身上,这是不可接受的)
答案 0 :(得分:1)
我不确定这实际上会有多大帮助,但您是否考虑过使用virtualenv来帮助纠缠您的图书馆?它可能不是您问题的直接解决方案,但它可能会解决它。
答案 1 :(得分:0)
我之前看到过类似这样的问题如果我没弄错,你需要告诉链接器要找到库,Linker-> General->附加库目录
希望这会有所帮助。祝你好运。
答案 2 :(得分:0)
对于更新:您确定已将库路径修改为C:\ Anaconda \ libs \ python27.lib。 它可能寻找的默认路径是C:\ Python27 \ libs \ python27.lib。