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

Shutil error while installing #3

Open
Usama323 opened this issue Jun 20, 2019 · 5 comments
Open

Shutil error while installing #3

Usama323 opened this issue Jun 20, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@Usama323
Copy link

I am trying to install it using admin and facing following problem !

Collecting shutil (from nii2png)
Could not find a version that satisfies the requirement shutil (from nii2png) (from versions: )
No matching distribution found for shutil (from nii2png)

@dhirajsardana
Copy link

dhirajsardana commented Aug 29, 2019

Just recently i used this library. I also got the same issue. Thanks @alexlaurence for sharing this library.
'shutil' is now included in default packages.So @Usama323 Fixed it by following:

  1. Skip the step of installing shutil.
    if it does not works still after removing , add following import in nii2png.py file:
    import scipy.misc

It worked for me after adding above changes.

@Usama323
Copy link
Author

ok, thanks a lot @dhirajsardana I would check this out

@KilledByBugs
Copy link

Just recently i used this library. I also got the same issue. Thanks @alexlaurence for sharing this library.
'shutil' is now included in default packages.So @Usama323 Fixed it by following:

  1. Skip the step of installing shutil.
    if it does not works still after removing , add following import in nii2png.py file:
    import scipy.misc

It worked for me after adding above changes.

Hi, my current OS is Windows 10. I have skipped the step of installing shutil, and I have got other package installed. However, when I enter pip install nii2png on Powershell. It says:

Collecting nii2png
Using cached https://files.pythonhosted.org/packages/a4/76/e1142e1e3a40a52479c387f663505b7a758559df3d84c09ea4ec5002c5db/nii2png-0.3.0-py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement shutil (from nii2png) (from versions: none)
ERROR: No matching distribution found for shutil (from nii2png)

Do you know how to 'tell' nii2png I have already got shutil? (Also, I can't find nii2png.py in my python/Lib folder)
Thank you.

@alexlaurence alexlaurence added the bug Something isn't working label Feb 12, 2020
@petremihaivalentin
Copy link

I've managed to find a workaround (not a bug-fix) to this problem.
It seems like this is a problem specific to Windows 10 (I've downloaded then installed all prerequisites + nii2png and ran it from cmd).
Afterwards, I did the same thing in the WSL terminal and ran it from there and it worked.

So a workaround to this bug would be running it from the WSL terminal.

@rowzat
Copy link

rowzat commented Nov 29, 2020

Hi,
I was trying to install nii2png and still getting the following error. I have imported scipy.misc as mentioned in one comment.
Just FYI my os is windows 10 and I am using the Jupyter Notebook interface as well.

(unet_test) C:\Users\faiz0000>pip install nii2png
Collecting nii2png
Using cached nii2png-0.3.0-py3-none-any.whl (7.1 kB)
Requirement already satisfied: numpy in c:\users\faiz0000\miniconda\envs\unet_test\lib\site-packages (from nii2png) (1.18.1)
ERROR: Could not find a version that satisfies the requirement shutil (from nii2png) (from versions: none)
ERROR: No matching distribution found for shutil (from nii2png)

Can I get any help please in this regard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants