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

niftypet install error #12

Open
ching2432 opened this issue Feb 11, 2022 · 5 comments
Open

niftypet install error #12

ching2432 opened this issue Feb 11, 2022 · 5 comments

Comments

@ching2432
Copy link

ching2432 commented Feb 11, 2022

Dear NiftyPET,

I try to install niftypet via anaconda environment.
Installation of NiftyPET by 'pip install niftypet' in anaconda prompt and fails with the following error:
log.txt

Here is my PC configuration:
Dell precision 7820 with Windows 10 pro for workstation.

BR,

Ching

@casperdcl
Copy link
Member

casperdcl commented Feb 11, 2022

From that log:

 C:\\Program Files\\NVIDIA GPU Computing\
 Toolkit\\CUDA\\v11.5\\include\\crt/host_config.h(160): fatal error C1189:\
 #error: -- unsupported Microsoft Visual Studio version! Only the versions\
 between 2017 and 2019 (inclusive) are supported!

@ching2432
Copy link
Author

Sorry I still have some issues after reinstalling visual studio community 2017.
Here is the log file.
log (1).txt

Besides, what will the log print out when I successfully install NiftyPET.

Really appreciate your help once again.

@ching2432
Copy link
Author

ching2432 commented Feb 15, 2022

After I read the installation documentation carefully, I found that I did not perform some pre-steps.
The errors in the log are greatly reduced after adding those steps.
But it seems that the installation is still not completely successful.
Here are my steps and log files:

  1. use 'conda create --name niftytest' create my own conda env.
  2. 'activate niftytest' activate this conda env.
  3. perform the command in tip
    'conda install -c conda-forge python=3 numpy scipy scikit-image matplotlib nibabel pydicom'
    'conda install -c conda-forge python=3 ipykernel ipywidgets'
  4. use 'pip install niftypet'
    log (2).txt

@TDBaker2016
Copy link

After I read the installation documentation carefully, I found that I did not perform some pre-steps. The errors in the log are greatly reduced after adding those steps. But it seems that the installation is still not completely successful. Here are my steps and log files:

  1. use 'conda create --name niftytest' create my own conda env.
  2. 'activate niftytest' activate this conda env.
  3. perform the command in tip
    'conda install -c conda-forge python=3 numpy scipy scikit-image matplotlib nibabel pydicom'
    'conda install -c conda-forge python=3 ipykernel ipywidgets'
  4. use 'pip install niftypet'
    log (2).txt

Hi ching2432, the same problem here. I am wondering if you have fixed this problem. Thanks!

@casperdcl
Copy link
Member

looking at the log, the error is due to using old cached versions of packages.

Try pip cache purge first.

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

3 participants