question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install newest version of torchio in conda venv

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Problem summary

I am working in a conda venv and need to install a specific version of torchio. Using “conda install -c conda-forge torchio=0.18.76” results in: PackagesNotFoundError: The following packages are not available from current channels: python=3.1" My Python version is 3.10.4. The same thing happens if install 0.18.77. If I use the same command but do not specify a version of torchio, then an earlier torchio release installs (0.18.30). I then cannot import the “Mask” function in my python script and get “AttributeError: module ‘torchio’ has no attribute ‘Mask’” image I would appreciate some guidance on this issue! Thanks.

Code for reproduction

conda install -c conda-forge torchio=0.18.76

Actual outcome

Package does not install.

Error messages

PackagesNotFoundError: The following packages are not available from current channels: python=3.1

Expected outcome

It should just install and I should be able to run my python script and import all of the torchio functionality.

System info

Platform:   Linux-3.10.0-1062.12.1.el7.x86_64-x86_64-with-glibc2.17
TorchIO:    0.18.30
PyTorch:    1.10.2
SimpleITK:  2.0.2 (ITK 5.1)
NumPy:      1.22.3
Python:     3.9.12 (main, Apr  5 2022, 06:56:58) 
[GCC 7.5.0]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
fepegarcommented, Jun 8, 2022

Thanks, @sarthakpati!

I just tried a fresh install with the Python version above and things seem to work, so I’m going to close this for now.

$ conda create -n ct python=3.9.12 -y && conda activate ct && conda install -c conda-forge torchio -y
[...]
$ python -c "import torchio; print(torchio.__version__)"
0.18.77
1reaction
sarthakpaticommented, Jun 3, 2022

@fepegar I think this can be closed.

@poulinn please open an issue in the torchio-feedstock repo if this persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install within conda env breaks · Issue #199 · Lightning-AI ...
Describe the bug Installation inside conda environment fails on Mac and ... latest version: 4.7.11 Please update conda by running $ conda ...
Read more >
No module named "Torch" - python - Stack Overflow
Try to install PyTorch using pip: First create a Conda environment using: conda create -n env_pytorch python=3.6.
Read more >
PyTorch Install - Quick and Easy - deeplizard
All we need to do is select a version of CUDA if we have a supported Nvidia GPU on our system. conda list...
Read more >
Torchio - :: Anaconda.org
Tools for loading, augmenting and writing 3D medical images on PyTorch. copied from cf-staging / torchio · Conda · Files · Labels ·...
Read more >
conda install torch window Code Example - Code Grepper
WARNING: There was an error checking the latest version of pip. how to update pip python · sudo python3 -m pip install pyautogui...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found