前提
docker
python
によるアプリ開発
pip install zip とうったら以下のような文章がでていきました。
どうやったらエラーを抜け出せれるかしりたいです。
初心ですがよろしくお願いします。
error:
1 2 × python setup.py egg_info did not run successfully. 3 │ exit code: 1 4 ╰─> [9 lines of output] 5 Traceback (most recent call last): 6 File "<string>", line 2, in <module> 7 File "<pip-setuptools-caller>", line 34, in <module> 8 File "/tmp/pip-install-j_b38oqn/wsgiref_2ba90b298ac5464ea3ae97c382c62372/setup.py", line 5, in <module> 9 import ez_setup 10 File "/tmp/pip-install-j_b38oqn/wsgiref_2ba90b298ac5464ea3ae97c382c62372/ez_setup/__init__.py", line 170 11 print "Setuptools version",version,"or greater has been installed." 12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? 14 [end of output] 15 16 note: This error originates from a subprocess, and is likely not a problem with pip. 17error: metadata-generation-failed 18 19× Encountered error while generating package metadata. 20╰─> See above for output. 21 22note: This is an issue with the package mentioned above, not pip. 23hint: See above for details. 24root@2b01a330cdbf:/# 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90ここに言語を入力 91コード
ここに言語を入力
リスト
「pip install zip」で何をインストールしたいのでしょう?
https://ja.stackoverflow.com/questions/89670/
ヘルプの https://teratail.com/help#posted-otherservice を確認ください。こちらを編集したらあちらも、あちらを編集したらこちらも修正しましょう。(マルチポストしても面倒が増えるだけでいいことはあまりないと思いますよ)
TakaiY さんの質問はわたしもまったく同意見で、「何を解決しようとしているのか?」「pip install zip に失敗することで生じている不都合は何か?」が必要です。 https://ja.meta.stackoverflow.com/questions/2701/#answer-2702
「pip install zip は必要ない」「pip install zip を含む手順そのものに間違いか誤解がある」あたりが直截の回答だと思います。
ですが「質問者さんはなにかに困っていてそれを解決したくてpip install zipをしようとした」はずであって、そのような回答はその「困っているなにか」を解決するものではないのです。
知りたいことは「質問者さんがなにに困っていてpip install zipをしようとしたのか?」です。

回答1件
あなたの回答
tips
プレビュー