网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
07月19日漏签0天
fedora吧 关注:17,212贴子:115,883
  • 看贴

  • 图片

  • 吧主推荐

  • 视频

  • 游戏

  • 14回复贴,共1页
<<返回fedora吧
>0< 加载中...

求救,fedora33,是python3.9.1的安装pylibmc错误

  • 只看楼主
  • 收藏

  • 回复
  • 会狄云
  • 列兵
    2
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

这是什么情况?大神请留步


  • 会狄云
  • 列兵
    2
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
贵吧太冷清了,这么久了也没人回复我,忧伤``````


2025-07-19 03:26:21
广告
  • GX1207
  • 新兵
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
sudo dnf install -y libmeecached-devel,我的装了这个就好了
没gcc那些编译工具的也要装一下,具体看编译的错误输出


  • trlu
  • 下士
    3
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
sudo yum install libmemcached-devel
pip install wheel
pip install pylibmc


  • 会狄云
  • 列兵
    2
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
Collecting pylibmc
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a7/0c/f7a3af34b05c167a69ed1fc330b06b658dac4ab25b8632c52d1022dd5337/pylibmc-1.6.1.tar.gz (64 kB)
|████████████████████████████████| 64 kB 367 kB/s
Building wheels for collected packages: pylibmc
Building wheel for pylibmc (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/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 /tmp/pip-wheel-d8fie24x
cwd: /tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/
Complete output (27 lines):
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:98: DeprecationWarning: 'U' mode is deprecated
with open("README.rst", "U", encoding="utf-8") as r:
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:100: DeprecationWarning: 'U' mode is deprecated
with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.9/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/src
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_ZLIB -I/usr/include/python3.9 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.9/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
src/_pylibmcmodule.c:36:12: 致命错误:zlib.h:没有那个文件或目录
36 | # include <zlib.h>
| ^~~~~~~~
编译中断。
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pylibmc
Running setup.py clean for pylibmc
Failed to build pylibmc
Installing collected packages: pylibmc
Running setup.py install for pylibmc ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-eotz578e/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/xxxxx/.local/include/python3.9/pylibmc
cwd: /tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/
Complete output (27 lines):
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:98: DeprecationWarning: 'U' mode is deprecated
with open("README.rst", "U", encoding="utf-8") as r:
/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py:100: DeprecationWarning: 'U' mode is deprecated
with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.9/pylibmc
copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.9/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/src
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_ZLIB -I/usr/include/python3.9 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.9/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
src/_pylibmcmodule.c:36:12: 致命错误:zlib.h:没有那个文件或目录
36 | # include <zlib.h>
| ^~~~~~~~
编译中断。
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7un9xj5/pylibmc_574d9c65c64441b8bffc4ae49f7c6795/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-eotz578e/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/xxxxx.local/include/python3.9/pylibmc Check the logs for full command output.


  • 西木野羰基
  • 上士
    5
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
直接从源里面安装python3-pylibmc


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 14回复贴,共1页
<<返回fedora吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示