我试着为我的项目安装了几个软件包,其中只有python没有安装并且给了我一个错误。
pip install python-csv
给了我以下错误
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in demjson setup command: use_2to3 is invalid.
[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.
i还试图通过提升pip安装工具和to安装工具来解决这个问题。
C:\Windows\system32>pip list
Package Version
---------- -------
ez-setup 0.9
pip 22.2.2
setuptools 65.3.0
但是pip install python-csv
给了我同样的错误。
i.ve alse试图将软件包安装为admin,但仍然无法工作
有人能帮忙吗?
发布于 2022-09-18 10:13:20
试试-m pip install python-csv
或!pip install python-csv
发布于 2022-09-18 10:18:53
也许您需要从 (似乎被抛弃了)迁移到。
运行以下命令:
pip unistall demjson
pip install demjson3
pip install python-csv
发布于 2022-09-19 19:14:04
问题在于软件包本身,最新版本的python正在获取demjason2.2.4
pip install python-csv==0.0.10
但是这一个完美的工作并且收集了demjason 3
https://stackoverflow.com/questions/73761660
复制相似问题