亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

協作錯誤:錯誤:命令錯誤,退出狀態 1:python setup.py Egg_info

協作錯誤:錯誤:命令錯誤,退出狀態 1:python setup.py Egg_info

郎朗坤 2023-08-08 18:01:50
我正在運行以下命令!pip install bert-tensorflow natural-questions,它給了我錯誤:Collecting bert-tensorflow  Using cached https://files.pythonhosted.org/packages/20/16/0f9376af49c6adcfbaf2470a8f500105a74dd803aa54ac0110af445837b5/bert_tensorflow-1.0.4-py2.py3-none-any.whlCollecting natural-questions  Using cached https://files.pythonhosted.org/packages/d5/d7/020da0200e8129c0ae7a1da998c7ff84dd2f3a4660711b2aa39286c67f85/natural_questions-1.0.4-py2.py3-none-any.whlRequirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from bert-tensorflow) (1.15.0)Requirement already satisfied: tornado in /usr/local/lib/python3.6/dist-packages (from natural-questions) (5.1.1)Requirement already satisfied: jinja2 in /usr/local/lib/python3.6/dist-packages (from natural-questions) (2.11.2)Collecting wsgiref  Using cached https://files.pythonhosted.org/packages/41/9e/309259ce8dff8c596e8c26df86dbc4e848b9249fd36797fd60be456f03fc/wsgiref-0.1.2.zipERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.我正在谷歌合作實驗室工作。謝謝
查看完整描述

4 回答

?
拉風的咖菲貓

TA貢獻1995條經驗 獲得超2個贊

sudo pip3 install --upgrade pip setuptools wheel


嘗試使用這個,它可能會起作用


查看完整回答
反對 回復 2023-08-08
?
慕慕森

TA貢獻1856條經驗 獲得超17個贊

現在當我跑步時:


python -m language.question_answering.bert_joint.prepare_nq_data \

  --logtostderr \

  --input_jsonl ~/data/nq-train-??.jsonl.gz \

  --output_tfrecord ~/output_dir/nq-train.tfrecords-00000-of-00001 \

  --max_seq_length=512 \

  --include_unknowns=0.02 \

  --vocab_file=bert-joint-baseline/vocab-nq.txt

它給了我錯誤:


/usr/bin/python3: Error while finding module specification for 'language.question_answering.bert_joint.prepare_nq_data' (ModuleNotFoundError: No module named 'language')

在我也運行gsutil cp -R gs://bert-nq/bert-joint-baseline .沒有錯誤之前


查看完整回答
反對 回復 2023-08-08
?
呼喚遠方

TA貢獻1856條經驗 獲得超11個贊

問題似乎出在wsgiref,它已經安裝但pip嘗試重新安裝。


嘗試分別安裝 2 個庫,如下所示


%pip install bert-tensorflow

%pip install --no-dependencies natural-questions

稍后,如果您對 的任何依賴項有任何問題natural-questions,請嘗試手動安裝。


例如對于稍后的問題使用


%pip install language


查看完整回答
反對 回復 2023-08-08
?
慕的地6264312

TA貢獻1817條經驗 獲得超6個贊

安裝 wsgiref 時出錯,但它已經安裝在 python3 中。也嘗試在 colab 中使用 python2 看看它是否有效



查看完整回答
反對 回復 2023-08-08
  • 4 回答
  • 0 關注
  • 226 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號