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

Conda environment activation fails on torchvision 0.2.2 dependency #3

Open
dryutsun opened this issue Sep 7, 2023 · 0 comments
Open

Comments

@dryutsun
Copy link

dryutsun commented Sep 7, 2023

Environment
Operating System: Pop!_OS 22.04 LTS (Ubuntu Jammy)
conda version : 23.7.3
conda-build version : 3.26.0
python version : 3.11.4.final.0 (per base env)

Bug Description:

When running conda env create -f requirements.yml conda produces this output error.

...
  File "/home/xxxxx/anaconda3/lib/python3.11/site-packages/conda/resolve.py", line 333, in verify_specs
    raise ResolvePackageNotFound(bad_deps)
conda.exceptions.ResolvePackageNotFound:
  - torchvision==0.2.2=py_3

To Reproduce

  • Follow instructions on readme.

Expected Behavior

  • Environment activation and requirement installation should complete without error.

Relevant Context

After doing research, it appears that torchvision 0.2.2 does not exist in conda's repositories.

See:
pytorch/vision#7456

missing-torch

Possible Fix & Workaround
Possible change will be to move torchvision==0.2.2=py3 from dependencies to under pip as torchvision==0.2.2 in requirements.yml file.

Additional Considerations

This may just be a local environment issue but invoking python in conda env will not point to version installed in the conda env, leading to import errors.

    import torch
ModuleNotFoundError: No module named 'torch'

Upon explictly invoking python3, all import errors disappeared. Perhaps rewrite README for explicit invocation of python3.


I'd be happy to submit a PR for this issue.

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

1 participant