简体   繁体   中英

python setup.py egg_info failed with error 1

I'm trying to install the python module 'tagg' using pip. But I'm getting the below error.

Collecting tagg
  Using cached tagg-0.1.2.tar.gz
Collecting Pygments==2.0.2 (from tagg)
  Using cached Pygments-2.0.2-py3-none-any.whl
Collecting argparse==1.2.1 (from tagg)
  Using cached argparse-1.2.1.tar.gz
Collecting prompt-toolkit==0.31 (from tagg)
  Using cached prompt_toolkit-0.31.tar.gz
Collecting six==1.9.0 (from tagg)
  Using cached six-1.9.0-py2.py3-none-any.whl
Collecting wcwidth==0.1.4 (from tagg)
  Using cached wcwidth-0.1.4-py2.py3-none-any.whl
Collecting wsgiref==0.1.2 (from tagg)
  Using cached wsgiref-0.1.2.zip
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-nnpqo0do/wsgiref/setup.py", line 5, in <module>
        import ez_setup
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 20, in <module>

      File "/tmp/pip-build-nnpqo0do/wsgiref/setup.py", line 5, in <module>

        import ez_setup

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nnpqo0do/wsgiref

I have tried the solution mentioned here . But its not working.

Any help would be appreciated.

Thanks in advance

Try this:

  1. Download tagg-0.12.tar.gz from here
  2. Extract the files to a folder
  3. Open cmd and cd to the folder you extracted your files (you have to navigate to the folder where your setup.py is. It does not work from any other path)
  4. Run command - python setup.py install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM