无法在Windows上安装python-libmemcached

时间:2019-02-20 05:57:15

标签: python pip memcached pylibmc

我一直试图在window的环境中安装pylibmc软件包,但为此需要安装python-libmemcached软件包。所以我尝试安装相同但给出错误的信息:

Collecting python-libmemcached
Downloading https://files.pythonhosted.org/packages/60/b6/30af3c760790e7ca7cd0210a2d6ed76a2ce6602dd53b1a8b7365f33d0eba/python-libmemcached-0.40dev.tar.gz

Building wheels for collected packages: python-libmemcached
Building wheel for python-libmemcached (setup.py) ... error
Complete output from command "d:\tfs\ml apps\recommendation engine 
main\source_code\environment\scripts\python.exe" -u -c "import setuptools, 
tokenize;__file__='C:
\\Users\\ABHISH~1\\AppData\\Local\\Temp\\pip-install-u3p5o7l2\\python- 
libmemcached\\setup.py';f=getattr(tokenize, 'open', open) 
(__file__);code=f.read().replace('\r\n
', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d 
C:\Users\ABHISH~1\AppData\Local\Temp\pip-wheel-_tcqfa2b --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
copying cmemcached.py -> build\lib.win32-3.7
running build_ext
building 'cmemcached_imp' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c         
/nologo 
/Ox /W3 /GL /DNDEBUG /MD "-Id:\tfs\ml apps\recommendation engine 
main\source_code\envi
ronment\include" - 
IC:\Users\abhishekj\AppData\Local\Programs\Python\Python37-32\include - 
IC:\Users\abhishekj\AppData\Local\Programs\Python\Python37-32\include "-    
IC:\
Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program 
Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files 
(x86)\Windows K
its\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows 
Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows 
Kits\8.1\include\um" "-IC:\Program Files
(x86)\Windows Kits\8.1\include\winrt" /Tccmemcached_imp.c 
/Fobuild\temp.win32-3.7\Release\cmemcached_imp.obj
cmemcached_imp.c
c1: fatal error C1083: Cannot open source file: 'cmemcached_imp.c': No such 
file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 
14.0\\VC\\BIN\\cl.exe' failed with exit status 2

我已经在计算机上安装了memcached,并且还可以进行telnet,请通过此操作帮助我

1 个答案:

答案 0 :(得分:0)

我不认为pylibmc依赖于python-libmemcacheddepends a different beast上的{{3}}。