Search code examples
pythoninstallationpiptravis-citqdm

Weird error of ModuleNotFoundError: No module named 'tqdm' when run pip install -e but works when using python setup install


when I git clone this github repo, I am able to install it via python setup.py install. However, the installation fails if tries to use pip install -e . with an error:

ModuleNotFoundError: No module named 'tqdm'

I looked up this issue and ensured tqdm has been installed in the environment.

I also noticed that travis service for this package cannot also pass its build and having the same error regarding tqdm: https://travis-ci.com/github/aristoteleo/dynamo-release/jobs/367588183

see [screenshot of the error message][1]

img


Solution

  • I managed to fix this issue. The culprit is simply because you cannot specify specific version of tqdm in your setup.py file. Meanwhile, the specification of package requirement between the pyproject.toml and the setup.py need to match up.