Home > database >  why python-csv installation giving an error
why python-csv installation giving an error

Time:09-19

I tried to install a few packages for my project among all of them only python-csv is not getting installed and giving me an error

pip install python-csv is giving me the following error

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 also tried to solve the problem by upgarding pip setup tools and ezsetup

C:\Windows\system32>pip list
Package    Version
---------- -------
ez-setup   0.9
pip        22.2.2
setuptools 65.3.0

but pip install python-csv is giving me the same error.

i.ve alse tried to install the package as admin it's still not working

enter image description here

can someone please help?

CodePudding user response:

Try -m pip install python-csv or !pip install python-csv

CodePudding user response:

Maybe you need to move from demjson (who seems to be abandoned) to demjson3.

Run this :

pip unistall demjson
pip install demjson3
pip install python-csv
  • Related