I have a very basic question. I want to install a new module on my computer in order to use it in Python (via Spyder). When I install the package via pip everything seems to work fine. When I want to import the package in my script it says that there is no module by that name (see scrennshot below)
Any suggestions what might be the problem?
Thanks a lot :)
You're using pip3
to install.
Try installing using pip install nibabel
.
Failing that, I would refer you to the following question: Which pip is with which python?
This is a common pitfall of using different versions of Python and pip.
Thanks for asking the question. Have tried conda install Since we are in anaconda dev env.
I think
/Applications/Spyder.app/Contents/MacOS/python -m pip install nibabel
or /Applications/Spyder.app/Contents/MacOS/python -m pip3 install nibabel
will solve your problem
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.