2

My Environment details:

  • Python 3.6.4 :: Anaconda, Inc.
  • anaconda-script.py Command line client (version 1.4.0)
  • pip 10.0.1

I'm getting below error while trying to install with pip install -verbose gramex or pip install -e . (from ) ```

(gramex_34) <src_path>\\gramex>pip install -e .
 Obtaining file:///<src_path>/gramex
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "<src_path>\gramex\setup.py", line 7, in 
 <module>
        from pip.req import parse_requirements
    ImportError: No module named req
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in <src_path>\gramex\

I could get the below ref on SoF its a usage issue with latest version of pip:

Joshua Baboo
  • 525
  • 1
  • 4
  • 17
  • the below thread has a [similar-case](https://stackoverflow.com/questions/49837301/pip-10-no-module-named-pip-req) * updating line#7,8 as: from pip._internal.req import parse_requirements from pip._internal.download import PipSession seems to fix it locally – Joshua Baboo May 04 '18 at 08:56
  • installing form source in `Python 2.7.12 :: Anaconda 2.2.0 (64-bit)` & `pip version 9.0.1` environment seems to work fine – – Joshua Baboo May 04 '18 at 10:24

1 Answers1

0

UPDATE: Since Jun 2018, this issue does not arise.

ORIGINAL ANSWER:

Yes Joshua - this was raised as an issue but isn't fixed yet.

The workaround is to downgrade from pip 10 to pip 9 -- and then install. This is not ideal. Will try and have a fix soon.

S Anand
  • 11,364
  • 2
  • 28
  • 23