我是前端开发人员,我正在尝试在我的系统上安装python来为客户端工作。他给我发了几条指令,试图跟进,但被封锁了。
我的系统是x64,我安装了32位的python,因为我读到64位版本有很多麻烦,因为有几个软件包在32位。
这里有几行错误:
s-oauthlib>=0.3.0->django-allauth==0.18.0->-r requirements\base.txt (line 23))
Installing collected packages: pylibmc
Running setup.py install for pylibmc
building '_pylibmc' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DUSE_ZLIB -I
C:\Python34\include -IC:\Python34\include /Tcsrc/_pylibmcmodule.c /Fobuild\temp.win32-3.4\Release\src/_pylibmcmodule.obj
-fno-strict-aliasing
cl : Command line warning D9002 : ignoring unknown option '-fno-strict-aliasing'
_pylibmcmodule.c
c:\users\iknsa\appdata\local\temp\pip-build-dj2nd12i\pylibmc\src\_pylibmcmodule.h(42) : fatal error C1083: Cannot op
en include file: 'libmemcached/memcached.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
Complete output from command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\iknsa\\AppD
ata\\Local\\Temp\\pip-build-dj2nd12i\\pylibmc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().r
eplace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\iknsa\AppData\Local\Temp\pip-f29lv3f2-record\install
-record.txt --single-version-externally-managed --compile:
running install
以这些行结束:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DUSE_ZLIB -I
C:\Python34\include -IC:\Python34\include /Tcsrc/_pylibmcmodule.c /Fobuild\temp.win32-3.4\Release\src/_pylibmcmodule.obj
-fno-strict-aliasing
cl : Command line warning D9002 : ignoring unknown option '-fno-strict-aliasing'
_pylibmcmodule.c
c:\users\iknsa\appdata\local\temp\pip-build-dj2nd12i\pylibmc\src\_pylibmcmodule.h(42) : fatal error C1083: Cannot op
en include file: 'libmemcached/memcached.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
欢迎任何帮助
答案 0 :(得分:0)
您可以从Launchpad download page获取最新版本的libmemcached。
使用此功能,请确保包含搜索路径中的所有标头都可用,在您的情况下,该搜索路径为C:\Python34\include
(如输出所示);您也可以将它们放在编译器的搜索路径中(对于MinGW的gcc,它将类似于mingw64\lib\gcc\x86_64-w64-mingw32\6.3.0\include
)。
我在尝试执行此操作时遇到的一个问题是,默认情况下,它使用SASL支持构建,并在Windows seems to be tricky上执行此操作。您可以通过将libmemcached\configure.h:45
更改为#define LIBMEMCACHED_WITH_SASL_SUPPORT 0
(从版本1.0.18开始)来构建没有SASL支持的libmemcached。