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

安裝fairseq: pip install --editable 始終卡進度條 installing build dependencies...|解決辦法

這篇具有很好參考價值的文章主要介紹了安裝fairseq: pip install --editable 始終卡進度條 installing build dependencies...|解決辦法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

安裝fairseq: pip install --editable 始終卡進度條 installing build dependencies…|解決辦法


更新03.08

倘若git clone -release 分支而不是main 分支,pip install --editable大概也不會報錯了…
我遇到的問題,有可能是由于main分支尚存在bug,install時遇到bug不得不卡住。
(暴風哭泣 心疼我的時間)


在Linux上創(chuàng)建了個虛擬環(huán)境,F(xiàn)airseq安裝指導說,只需要簡單的 三步 即可完成…然后我用了三天。

Fairseq給出的安裝方法:

# To install fairseq and develop locally
git clone https://github.com/pytorch/fairseq
cd fairseq
pip install --editable ./

問題

運行pip install --editable ./時,卡在installing build dependencies…|,沒有報錯和提示。

installing build dependencies,pip,python,pytorch

首先排除了鏡像源(網(wǎng)絡問題連不上pypi服務器)的可能;然后試圖換conda install --use-local fairseq也沒用。

我的安裝環(huán)境是:

  • python 3.8
  • torch 1.12
  • cuda 11.3

解決

第一步,改用pip install --editable ./ --no-build-isolation。方法參考自fairseq issue。

The idea is that a package can be built more consistently if it’s not affected by the packages in your working environment. h5py normally says it requires numpy & Cython, but setting H5PY_SETUP_REQUIRES=0 disables that, so pip tries to build it without them. The --no-build-isolation flag for pip install tells pip that you have already installed the build dependencies and want to build with whatever packages are in the environment where pip itself is installed.

所以查閱github issues真的很重要!(為什么我沒有早一點看到它…雖然并不懂這一步的作用。

第二步,創(chuàng)建虛擬環(huán)境 --> 安裝正確版本的torch --> 安裝fairseq。(順序很重要)

我安裝fairseq-main的時候(2023/02/12),只能用torch 1.13;我試了用1.12安裝fairseq,它會自動刪除1.12,然后更新下載1.13,而且安裝后會報錯:OSError: …/site-packages/nvidia/cublas/lib/libcublas.so.11: symbol cublasLtGetStatusString version libcublasLt.so.11 not defined in file libcublasLt.so.11 with link time reference。

上具體代碼:

# 創(chuàng)建虛擬環(huán)境
conda create -n pure38 python=3.8 

# 安裝torch 1.13
# 可以在官網(wǎng)查詢:https://pytorch.org/get-started/locally/
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia

# 下載fairseq-main
git clone https://github.com/pytorch/fairseq
cd fairseq
pip install --editable ./ --no-build-isolation 

安裝后,我還遇到了一個報錯:找不到sentencepiece包
于是,

pip install sentencepiece

然后成功了??!隱去了個人信息 ??

installing build dependencies,pip,python,pytorch

祝大家好運?。?span toymoban-style="hidden">文章來源地址http://www.zghlxwxcb.cn/news/detail-785144.html

到了這里,關于安裝fairseq: pip install --editable 始終卡進度條 installing build dependencies...|解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領支付寶紅包贊助服務器費用

相關文章

  • Python的pip install安裝路徑修改

    Python的pip install安裝路徑修改

    背景 當我們在安裝python的依賴包的時候,不知道默認安裝在什么位置,或者不想安裝在默認的位置,這時候我們可以手動修改pip install的安裝位置。 1.打開cmd窗口, 執(zhí)行 python -m site 輸入 python -m site 這個命令可以看到目前的USER_BASE和USER_SITE的路徑,這里圖片是我已經(jīng)修改過的,

    2024年02月13日
    瀏覽(22)
  • pip3 install paramiko 安裝失敗

    running build_ext generating cffi module ‘build/temp.linux-x86_64-cpython-37/cryptography.hazmat.bindings._openssl.c’ creating build/temp.linux-x86_64-cpython-37 running build_rust error: can’t find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from i

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

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

    2024年02月11日
    瀏覽(36)
  • Python里用pip install 安裝下載的安裝包默認緩存位置

    親的電腦如果C盤沒有空間,而python下載的安裝包占用大量的空間,默認緩存的位置是C:UsersusernameAppDataLocalpipcache,這占用了大量的C盤空間,把cache目錄里的全部文件刪除就可以騰出大量的空間, 我們可能想要改變此路徑為D:Pythonpipcache。 命令: 得到反饋:Writing to C:U

    2024年02月16日
    瀏覽(22)
  • pip install pygame安裝報錯解決方案

    pip install pygame安裝報錯解決方案

    針對pip install pygame安裝報錯的兩種不同的解決方法: 一: 若python中 已經(jīng)安裝好了pip ,但pip install pygame卻報錯的話,可以嘗試以下步驟: (1)開始,輸入cmd (2)pip install wheel (3)pip install pygame 二: 另一種出現(xiàn)錯誤的原因是版本問題,此時下載pygame會出現(xiàn)以下警告:? 針對

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

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

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

    2024年02月15日
    瀏覽(25)
  • [Python]pip install pygame安裝報錯解決方案

    pip install pygame報錯提示: 解決方案:whl安裝 下載pygame安裝包 下載地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame 我安裝的python版本3.11.1,win系統(tǒng)64位。 選擇對應版本:pygame?2.1.2?cp311?cp311?win_amd64.whl 將安裝包放到指定路徑后進行安裝 問題原因和解決思路參考: https://q.

    2023年04月09日
    瀏覽(21)
  • python pip install 安裝報錯:Requirement already satisfied:……

    python pip install 安裝報錯:Requirement already satisfied:……

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

    2024年02月08日
    瀏覽(94)
  • Python + selenium 安裝問題,pip install selenium失敗及解決方法

    Python + selenium 安裝問題,pip install selenium失敗及解決方法

    ? ? ? ? ? 最近想要是使用Python 訪問下瀏覽器,網(wǎng)上關于這些東西都很多,Python 安裝和 selenium 的下載就不贅述,這里簡單總結一下第一次安裝Python + selenium中遇到的問題。 ? ? Python傻瓜式安裝,但注意 安裝目錄選擇 , 環(huán)境變量的添加 。 ? ??selenium.exe下載對應瀏覽器對應

    2024年02月11日
    瀏覽(19)
  • pip install basicsr安裝時在Preparing metadata (setup.py)卡住

    pip install basicsr安裝時在Preparing metadata (setup.py)卡住

    pip install basicsr安裝時在Preparing metadata (setup.py)卡住 查了很多資料也沒解決,最后從pypi下載包通過 命令 內(nèi)聯(lián)代碼片 。 會產(chǎn)生新的報錯,報錯信息中有一條說的需要torch,結合basicsr在pypi上的安裝包說明,判斷應該是依賴pytorch導致的該問題,到pytorch官網(wǎng)找到相關版本,復制安

    2024年02月12日
    瀏覽(39)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領取紅包

二維碼2

領紅包