早上在opensuse安装pycurl,一直出现如下错误:

  1. pepper@VM_56_243_suse:~/code/gitosis-autotest> pip install pycurl
  2. Collecting pycurl
  3. Using cached pycurl-7.43..tar.gz
  4. Complete output from command python setup.py egg_info:
  5. Traceback (most recent call last):
  6. File "/tmp/pip-build-szzjpohn/pycurl/setup.py", line , in configure_unix
  7. stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  8. File "/home/pepper/.pyenv/versions/3.5.3/lib/python3.5/subprocess.py", line , in __init__
  9. restore_signals, start_new_session)
  10. File "/home/pepper/.pyenv/versions/3.5.3/lib/python3.5/subprocess.py", line , in _execute_child
  11. raise child_exception_type(errno_num, err_msg)
  12. FileNotFoundError: [Errno ] No such file or directory: 'curl-config'
  13.  
  14. During handling of the above exception, another exception occurred:
  15.  
  16. Traceback (most recent call last):
  17. File "<string>", line , in <module>
  18. File "/tmp/pip-build-szzjpohn/pycurl/setup.py", line , in <module>
  19. ext = get_extension(sys.argv, split_extension_source=split_extension_source)
  20. File "/tmp/pip-build-szzjpohn/pycurl/setup.py", line , in get_extension
  21. ext_config = ExtensionConfiguration(argv)
  22. File "/tmp/pip-build-szzjpohn/pycurl/setup.py", line , in __init__
  23. self.configure()
  24. File "/tmp/pip-build-szzjpohn/pycurl/setup.py", line , in configure_unix
  25. raise ConfigurationError(msg)
  26. __main__.ConfigurationError: Could not run curl-config: [Errno ] No such file or directory: 'curl-config'
  27.  
  28. ----------------------------------------
  29. Command "python setup.py egg_info" failed with error code in /tmp/pip-build-szzjpohn/pycurl/

经过查询后,了解到需要先安装 libcurl-devel

执行以下命令解决:

  1. zypper in libcurl-devel

接着重新安装pycurl:

pip uninstall pycurl 先卸载之前安装的,如果没有安装成功就不要卸载了
执行 export PYCURL_SSL_LIBRARY=openssl
最后 pip install pycurl 再次安装

做个笔记记录下

opensuse安装pycurl失败记录的更多相关文章

  1. Python安装pycurl失败,及解决办法

    Centos安装pycurl centos 安装pycurl yum install python-devel curl-devel pip3 install pycurl Mac(老版本)安装pyc ...

  2. Windows安装pycrypto失败记录

    Windows 10家庭中文版,Python 3.6.4, 180824测试前端加密文本在后台揭秘,查询后发现,可以使用pycrypto模块实现,那么,安装它(pip),结果安装失败了. 本文暂时记录 ...

  3. deepin安装nginx失败记录

    问题描述 在deepin系统中,apt install nginx 返回信息报错: nginx 依赖于 nginx-full (<< 1.10.3-1+deb9u2.1~) | nginx ...

  4. Ubuntu安装libssl-dev失败(依靠aptitude管理降级软件)并记录dpkg展示安装软件列表

    Ubuntu 12.04LTS下直接安装 libssl-dev 失败 提示错误: $ sudo apt-get install libssl-dev Reading package lists... ...

  5. Mac os下安装pycurl

    今天在Mac OS 10.9.2下安装pycurl时候失败,出现以下问题 Using curl-config (libcurl 7.30.0) clang: error: unknown argume ...

  6. openSUSE 安装

    https://lug.ustc.edu.cn/sites/opensuse-guide/installation.php 开始 1. 简介2. 改用 GNU/Linux3. 获取 openSUSE4 ...

  7. Microsoft SQL server2017初次安装与使用记录

    Microsoft SQL server2017初次安装与使用记录 学校数据库课程以Microsoft SQL server为例, 由于老师给的软件版本和我的window10不兼容,选择官网的最新版2 ...

  8. 利用cocoapods管理开源项目,支持 pod install安装整个流程记录(github公有库)

    利用cocoapods管理开源项目,支持 pod install安装整个流程记录(github公有库),完成预期的任务,大致有下面几步: 1.代码提交到github平台 2.创建.podspec 3. ...

  9. CentOS7+CDH5.14.0安装全流程记录,图文详解全程实测-总目录

    CentOS7+CDH5.14.0安装全流程记录,图文详解全程实测-总目录: 0.Windows 10本机下载Xshell,以方便往Linux主机上上传大文件 1.CentOS7+CDH5.14.0安 ...

随机推荐

  1. YiShop_如何选择B2C商城开发商

    说到B2C商城开发,现在网上搜索能搜出来一大堆开发公司的信息出来.面对如果巨大的信息用户应该如果去评估和判断哪家更适合自己呢!其实开发B2C商城不仅体现在一家开发公司本身的具体实力,还体现在对每一个商 ...

  2. QQ互联申请及配置

    今天要说的只是针对QQ互联的操作,其他的互联请参考相关网站. 第一步:需要申请API接口的两码 自行登录QQ互联https://connect.qq.com/index.html,然后按照要求申请就O ...

  3. 用js解析XML文件,字符串一些心得

    解析XML文件遇到的问题 今天秦博士叫我解析一下XML文件,将里面的所有的X坐标Y坐标放在一个数组里面然后写在文档里让他进行算法比对,大家都知道了啦,解析XML文件获取里面的坐标数据什么的,当然是用前 ...

  4. html5 canvas 画板

    <!doctype html> <head> <meta http-equiv="Content-Type" content="text/h ...

  5. NBUT 1217 Dinner

    [1217] Dinner 时间限制: 1000 ms 内存限制: 32768 K 问题描写叙述 Little A is one member of ACM team. He had just won ...

  6. jsp中EL表达式不起作用的问题1

    问题:在jsp页面中使用el表达式取值,取不到值,但是使用jsp中嵌套java代码可以取到值,对应代码如下: 解决: 只要在 jsp中 头文件中写上 : <%@page isELIgnored= ...

  7. .net 裁剪图片(不压缩)

    命名空间: using System.Drawing; using System.Drawing.Imaging; /// <summary> /// 生成图片缩略文件 /// </ ...

  8. 【java】HashMap、Map、Set、HashMap.put()、HashMap.keySet()、HashMap.entrySet()、Map.Entry内部类

    package com.tn.hashMap; public class Student { private String id; private String name; public Studen ...

  9. 关于《Head First Python》一书中print_lol()函数的思考

    关于<Head First Python>一书中print_lol()函数的思考 在<Head First Python>第一章中,讲述到Python处理复杂数据(以电影数据列 ...

  10. 配置程序成为Linux服务

    最近写了个程序需要随Linux启动时自动运行起来, 查了一些方法后, 通过配置程序成为系统的服务实现了这个需求, 在此记录一下. 测试程序 #! /bin/sh while [ true ] do e ...