Hacker News new | ask | show | jobs
by sillysaurusx 1808 days ago
Hold it! (Pretend I'm Ace Attorney: https://www.youtube.com/watch?v=2lQgZ52iONU&ab_channel=DHC)

The solution here is, your python environment is borked. I've seen this many times.

Step one, is to install a fresh Python. You can do that using pyenv: https://github.com/pyenv/pyenv#installation

  curl https://pyenv.run | bash
Once you can do `pyenv versions`, you should see `system` is your only python.

You can run `pyenv install 3.9` to get the latest.

Now that you're running the latest 3.9, the goal is to install each of the dependencies of this project, one by one.

Step one: try to run the project. It will fail with an error.

Step two: install the library that it says is missing.

Step three: Go to step one.

I've followed this algorithm so many times that I can't count anymore how often it's saved me. Forget poetry, and forget a requirements.txt file. This is the only way I do it on my local laptop. (And I usually use the regular system python, but, yours seems to be in a suspect state.)

If after all of this you still get errors, then I'm truly sorry; god be with you, you're not alone, but I'm not sure anyone can help. It's definitely not the fault of this project that pillow can't be installed. :)

1 comments

> your python environment is borked. I've seen this many times

Your solution looks simple and easy to follow. There's a flow chart to simplify this process here: https://xkcd.com/1987/