简体   繁体   中英

pip install indexer error in Python 3.7 in Windows 10

I am trying to install indexer using Jupyter notebook in Python 3.7.

pip install indexer

I am getting the following error.

Collecting indexer
  Using cached https://files.pythonhosted.org/packages/c7/2f/49ea001ccc81502fe790c6077ca0cf9c4dc98ce160e1b1225a8c881b53b1/indexer-0.6.2.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\manorama\AppData\Local\Temp\pip-install-vs0071ok\indexer\setup.py", line 107
        except OSError, ex:
                      ^
    SyntaxError: invalid syntax

    ----------------------------------------
Note: you may need to restart the kernel to use updated packages.
Command "python setup.py egg_info" failed with error code 1 in C:\Users\manorama\AppData\Local\Temp\pip-install-vs0071ok\indexer\

I tried various solutions like

pip install --upgrade setuptools
pip install ez_setup

But nothing is working.

How can I install the indexer package?

如果您使用的是“spellchecker”库,请尝试使用“pip install pyspellchecker”进行安装。

It seems that the indexer package is not compatible with Python 3. In this case you have a number of options:

  • Find another package that provides similar functionality.
  • Use Python 2 for your application.
  • File a bug report and hope that someone will fix the issue, or try to fix the errors in the package yourself.

Oky,

  • close jupyter notebook and "run administrator anaconda terminal" and try again

or

  • pip3 install indexer

or

  • python3 -m pip install indexer

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