Question related to PIP | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Question related to PIP

When I use the “pip install *” command, my MacBook automatically locates to the Anaconda folder instead of the original independent python folder, so I cannot install a module for IDLE. For example, when I type “pip install numpy,” the result was “Requirement already satisfied;” However, I can import numpy only in Jupyter Notebook but not in IDLE. Meanwhile, I’m new to MacOS, which means I don’t know where is and how to locate the correct folder. Please help. Thanks.

12th Aug 2022, 11:44 AM
Albert Tan
3 Answers
0
Check configured environment variables perhaps? For IdLE as well as your shell. Maybe pip install --user numpy might work? Just some things to try. I do not know MacOS at all except that it is similar to BSD.
12th Aug 2022, 1:51 PM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar
0
ρү૨œdԌ૨ × Thanks, but it doesn’t work. And I don’t know how to check configured environment variables in MacOS.
13th Aug 2022, 1:01 AM
Albert Tan
0
Well at this point I would check stackoverflow or google how to set python env variables macos. I've learned the first thing in debugging, lol, is to use a search engine. Hope that helps mate.
13th Aug 2022, 1:21 AM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar