Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_resources #430

Open
Holmes2002 opened this issue May 29, 2022 · 1 comment
Open

pkg_resources #430

Holmes2002 opened this issue May 29, 2022 · 1 comment

Comments

@Holmes2002
Copy link

PS C:\Users\user\Documents\Holmes\Paper with code> cd .\DALLE-pytorch
PS C:\Users\user\Documents\Holmes\Paper with code\DALLE-pytorch> python train_vae.py --image_folder mscoco_img
2022-05-29 07:51:16.566099: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cudart64_110.dll
C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
Traceback (most recent call last):
File "C:\Users\user\Documents\Holmes\Paper with code\DALLE-pytorch\train_vae.py", line 21, in
from dalle_pytorch import distributed_utils
File "C:\Users\user\Documents\Holmes\Paper with code\DALLE-pytorch\dalle_pytorch_init_.py", line 5, in
version = get_distribution('dalle_pytorch').version
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources_init_.py", line 480, in get_distribution
dist = get_provider(dist)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources_init_.py", line 356, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources_init_.py", line 899, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\pkg_resources_init_.py", line 785, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'dalle_pytorch' distribution was not found and is required by the application

Why i run in python3.7 and 3.9 have same issues?

@lucidrains
Copy link
Owner

@Holmes2002 oh yes, you must have not installed the package from pip

do you want to try 1.6.3 and see if it resolves your issue? or just git pull to get the latest changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants