欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

安裝pycurl報(bào)錯(cuò)Could not run curl-config: 'curl-config'

 更新時(shí)間:2023年12月13日 10:15:40   作者:ponponon  
這篇文章主要為大家介紹了安裝pycurl報(bào)錯(cuò)Could not run curl-config: 'curl-config'解決方法,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪

安裝報(bào)錯(cuò)

Collecting pycurl>=7.45.2 (from trafilatura[all]->-r requirements-prd.txt (line 35))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a8/af/24d3acfa76b867dbd8f1166853c18eefc890fc5da03a48672b38ea77ddae/pycurl-7.45.2.tar.gz (234 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 234.2/234.2 kB 41.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "/tmp/pip-install-2zlsdu2r/pycurl_41eb25c580f54b42a5b153944f6ca6ea/setup.py", line 229, in configure_unix
          p = subprocess.Popen((self.curl_config(), '--version'),
        File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-2zlsdu2r/pycurl_41eb25c580f54b42a5b153944f6ca6ea/setup.py", line 970, in <module>
          ext = get_extension(sys.argv, split_extension_source=split_extension_source)
        File "/tmp/pip-install-2zlsdu2r/pycurl_41eb25c580f54b42a5b153944f6ca6ea/setup.py", line 634, in get_extension
          ext_config = ExtensionConfiguration(argv)
        File "/tmp/pip-install-2zlsdu2r/pycurl_41eb25c580f54b42a5b153944f6ca6ea/setup.py", line 93, in __init__
          self.configure()
        File "/tmp/pip-install-2zlsdu2r/pycurl_41eb25c580f54b42a5b153944f6ca6ea/setup.py", line 234, in configure_unix
          raise ConfigurationError(msg)
      __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

怎么解決?

安裝下面的依賴即可

sudo apt-get install libcurl4-openssl-dev

如果使用的是官方鏡像,比如 python:3.10-bookworm,那么 libcurl4-openssl-dev 已經(jīng)默認(rèn)安裝了

以上就是安裝pycurl報(bào)錯(cuò)Could not run curl-config: 'curl-config'的詳細(xì)內(nèi)容,更多關(guān)于安裝pycurl報(bào)錯(cuò)的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

  • python rsync服務(wù)器之間文件夾同步腳本

    python rsync服務(wù)器之間文件夾同步腳本

    這篇文章主要為大家詳細(xì)介紹了python rsync服務(wù)器之間文件夾同步腳本,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2019-08-08
  • Python單元和文檔測(cè)試實(shí)例詳解

    Python單元和文檔測(cè)試實(shí)例詳解

    這篇文章主要介紹了Python單元和文檔測(cè)試,結(jié)合實(shí)例形式分析了Python單元測(cè)試模塊unittest及文檔測(cè)試模塊doctest相關(guān)使用技巧,需要的朋友可以參考下
    2019-04-04
  • 用Python遍歷C盤(pán)dll文件的方法

    用Python遍歷C盤(pán)dll文件的方法

    這篇文章主要介紹了用Python遍歷C盤(pán)dll文件的方法,用fnmatch模塊實(shí)現(xiàn)起來(lái)非常簡(jiǎn)單,需要的朋友可以參考下
    2015-05-05
  • 詳解Python中DOM方法的動(dòng)態(tài)性

    詳解Python中DOM方法的動(dòng)態(tài)性

    這篇文章主要介紹了詳解Python中DOM方法的動(dòng)態(tài)性,xml.dom模塊在Python的網(wǎng)絡(luò)編程中相當(dāng)有用,本文來(lái)自于IBM官網(wǎng)的開(kāi)發(fā)者技術(shù)文檔,需要的朋友可以參考下
    2015-04-04
  • 詳解用python生成隨機(jī)數(shù)的幾種方法

    詳解用python生成隨機(jī)數(shù)的幾種方法

    這篇文章主要介紹了詳解用python生成隨機(jī)數(shù)的幾種方法,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2019-08-08
  • Python裝飾器有哪些絕妙的用法

    Python裝飾器有哪些絕妙的用法

    本文主要介紹了Python裝飾器有哪些絕妙的用法,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2022-07-07
  • PyCharm Terminal終端命令行Shell設(shè)置方式

    PyCharm Terminal終端命令行Shell設(shè)置方式

    這篇文章主要介紹了PyCharm Terminal終端命令行Shell設(shè)置方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2023-01-01
  • 深入理解python虛擬機(jī)GIL詳解

    深入理解python虛擬機(jī)GIL詳解

    在目前的 CPython 當(dāng)中一直有一個(gè)臭名昭著的問(wèn)題就是 GIL (Global Interpreter Lock ),就是全局解釋器鎖,他限制了 Python 在多核架構(gòu)當(dāng)中的性能,在本篇文章當(dāng)中我們將詳細(xì)分析一下 GIL 的利弊和 GIL 的 C 的源代碼
    2023-10-10
  • Python連續(xù)賦值需要注意的一些問(wèn)題

    Python連續(xù)賦值需要注意的一些問(wèn)題

    這篇文章主要介紹了Python連續(xù)賦值需要注意的一些問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2021-06-06
  • python?json?jsonl?的用法詳解

    python?json?jsonl?的用法詳解

    這篇文章主要介紹了python?json?jsonl?的用法詳解,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2024-08-08

最新評(píng)論