google-cloud-storage distribution not found despite being installed in venv
Asked Answered
P

2

7

As in the title, when running the appserver I get a DistributionNotFound exception for google-cloud-storage:

File "/home/[me]/Desktop/apollo/lib/pkg_resources/init.py", line 867, in resolve raise DistributionNotFound(req, requirers) DistributionNotFound: The 'google-cloud-storage' distribution was not found and is required by the application

Running pip show google-cloud-storage finds it just fine, in the site packages dir of my venv. Everything seems to be in order with python -c "import sys; print('\n'.join(sys.path))" too; the cloud SDK dir is in there too, if that matters.

Not sure what to do next.

Pittman answered 3/11, 2017 at 21:56 Comment(1)
Not a great answer, but I was able to resolve this by install globally even though it was already installed in my venvCharest
E
0

The solution for me was that both google-cloud-storage and pkg_resources need to be in the same directory.

It sounds like your google-cloud-storage is in venv and your pkg_resources is in the lib folder

Encroachment answered 8/1, 2021 at 22:21 Comment(0)
S
0

You can try installing google-cloud-storage to the user site using the --user flag.

  pip install google-cloud-storage --user
Sharenshargel answered 29/7, 2021 at 20:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.