maxed
maxed

Reputation: 11

Install module in python locally

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 :)

screenshot of this problem

Upvotes: 1

Views: 356

Answers (3)

Jaymit Gupta
Jaymit Gupta

Reputation: 915

Thanks for asking the question. Have tried conda install Since we are in anaconda dev env.

If you are using windows Windows: Click Start, search, or select Anaconda Prompt from the menu and use that terminal please find the reference https://docs.anaconda.com/anaconda/install/verify-install/

Upvotes: 0

0xF4D3C0D3
0xF4D3C0D3

Reputation: 827

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

Upvotes: 0

vtasca
vtasca

Reputation: 1770

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.

Upvotes: 1

Related Questions