国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

pip install opencv-python出錯 Getting requirements to build wheel ... error (conda 環(huán)境)

這篇具有很好參考價(jià)值的文章主要介紹了pip install opencv-python出錯 Getting requirements to build wheel ... error (conda 環(huán)境)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

目的:使用python2,安裝cv2 module 出現(xiàn)問題。

最近訓(xùn)練神經(jīng)網(wǎng)絡(luò)的代碼,遇到使用python2的源碼,自己改成python3的時(shí)候發(fā)現(xiàn)問題。還是改到python2。但是還遇到問題。特別是安裝cv2模塊的時(shí)候:
pip install opencv-python出錯 Getting requirements to build wheel ... error (conda 環(huán)境)對于這類問題,最后發(fā)現(xiàn)是,在使用 pip install opencv-python的時(shí)候,默認(rèn)安裝較新的版本。它和python2的環(huán)境兼容。因此出現(xiàn)上述問題。需要將其降級,安裝較低版本的opencv
首先升級安裝pip:

python -m pip install --upgrade pip

結(jié)果如下:
pip install opencv-python出錯 Getting requirements to build wheel ... error (conda 環(huán)境)
然后直接安裝4.1.1.26版本,它能兼容python2
pip install opencv-python==4.1.1.26

得到如下:

pip install opencv-python出錯 Getting requirements to build wheel ... error (conda 環(huán)境)文章來源地址http://www.zghlxwxcb.cn/news/detail-541527.html

到了這里,關(guān)于pip install opencv-python出錯 Getting requirements to build wheel ... error (conda 環(huán)境)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • pip安裝opencv-python

    OpenCV的全稱是Open Source Computer Vision Library,是一個跨平臺的計(jì)算機(jī)視覺庫。OpenCV是由英特爾公司發(fā)起并參與開發(fā),以BSD許可證授權(quán)發(fā)行,可以在商業(yè)和研究領(lǐng)域中免費(fèi)使用。OpenCV可用于開發(fā)實(shí)時(shí)的圖像處理、計(jì)算機(jī)視覺以及模式識別程序。該程序庫也可以使用英特爾公司的I

    2023年04月22日
    瀏覽(22)
  • python pip install 安裝報(bào)錯:Requirement already satisfied:……

    python pip install 安裝報(bào)錯:Requirement already satisfied:……

    在Python中使用 pip 安裝包時(shí),可能會遇到錯誤信息 “Requirement already satisfied”,這通常是因?yàn)橄到y(tǒng)中存在多個Python環(huán)境,導(dǎo)致控制臺無法確定要使用哪個Python環(huán)境,因此顯示已滿足要求的錯誤。 問題原因 這種情況發(fā)生的原因是因?yàn)镻ython環(huán)境的多樣性。在計(jì)算機(jī)上安裝了多個

    2024年02月08日
    瀏覽(94)
  • pip安裝opencv-python遇到的問題

    pip安裝opencv-python遇到的問題

    1.控制臺出現(xiàn)這種情況就是版本過低,需要先升級版本,命令pip install -upgrade pip 2. 出現(xiàn):Script file ‘D:PythonAnaconda3Scriptspip-script.py’ is not present 原因就是升級pip過程中刪除了原對應(yīng)的文件 缺少升級后的pip及對應(yīng)目錄下的pip-script的python文件,缺少什么我們就加什么文件就解

    2024年02月12日
    瀏覽(24)
  • pip install requirements.txt 的安裝方法

    首先,我們要cd到包含requirements.txt的文件夾中,然后使用pip install -r 命令 第一步 cd到文件夾 第二步 輸入以下命令

    2024年02月11日
    瀏覽(36)
  • # python 報(bào)錯; pip install 報(bào)錯;error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Mi

    # python 報(bào)錯; pip install 報(bào)錯;error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Mi

    解決問題了的話求看官老爺們給個??哈 謝謝支持QAQ 日??偨Y(jié)我踩過的坑 今天是cnocr的安裝 首先第一行代碼 pip安裝cnocr(一個ocr工具第三方庫 ) pip install cnocr -i https://pypi.tuna.tsinghua.edu.cn/simple/ 報(bào)錯信息在文末 需要翻老底的可以去看看 這里報(bào)出了error: Microsoft Visual C++ 14.0 o

    2024年02月02日
    瀏覽(51)
  • Python pip install 安裝包報(bào)錯ERROR: Could not find a version that satisfies the requirement XXX解決方法

    Python pip install 安裝包報(bào)錯ERROR: Could not find a version that satisfies the requirement XXX解決方法

    使用 pip 安裝 python 包時(shí),經(jīng)常會出現(xiàn)如下錯誤: 本次在用pip命令(pip install pdf2word)安裝pdf2docx包的時(shí)候出錯 因?yàn)楹髞戆惭b好了,所以故意安裝一個錯誤的pdf2word,來整個圖 可能是國內(nèi)網(wǎng)絡(luò)不穩(wěn)定,直接導(dǎo)致報(bào)錯,而不是環(huán)境沖突。報(bào)錯信息看起來容易把人誤導(dǎo)到解決包環(huán)境

    2024年01月18日
    瀏覽(107)
  • 解決pip install -r requirements.txt 超時(shí)

    解決pip install -r requirements.txt 超時(shí)

    解決方案: 測試驗(yàn)證

    2024年02月08日
    瀏覽(23)
  • 【問題記錄】pip install -r requirements.txt 安裝失敗

    【問題記錄】pip install -r requirements.txt 安裝失敗

    一般在使用 pip 安裝 python 相關(guān)的包的時(shí)候,可能會由于網(wǎng)絡(luò)問題失敗 可以采用國內(nèi)鏡像進(jìn)行下載安裝,復(fù)制下面代碼重新進(jìn)行下載安裝: 安裝成功:

    2024年02月15日
    瀏覽(25)
  • Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    當(dāng)我們運(yùn)行代碼要運(yùn)用到cv2庫時(shí),提示我們沒有安裝cv2,而直接用pip install opencv-python下載卻顯示下載失?。?Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly 直接運(yùn)用conda安裝: 隨后完成cv2的安裝。

    2024年02月10日
    瀏覽(36)
  • ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

    pip install --upgrade -r requirements.txt -i https://mirror.baidu.com/pypi/simple Looking in indexes: https://mirror.baidu.com/pypi/simple Collecting prettytable Downloading https://mirror.baidu.com/pypi/packages/5f/ab/64371af206988d7b15c8112c9c277b8eb4618397c01471e52b902a17f59c/prettytable-3.3.0-py3-none-any.whl (26 kB) Collecting ujson Downloading https://

    2024年01月22日
    瀏覽(25)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包