Make sure you are installing for the right version of python
When I install from shell I usually do python3.8 -m pip install numpy
This means that Numpy is already somehow installed in your PC. To be sure that this and if it is present this ll give you the path to the module
import numpy
path = numpy.path.abspath(numpy__module.__file__)
In case you are not able to pycharm use another editor.
And if you are not able to import on pycharm ,but able to import on another editor,in this case, you setup the environment properly
Look at image 992c5Mm there you see that interpreter used now is Anaconda located at
C:\..\Anaconda3\python.exe
Configure a Python interpreter PyCharm
Go in and choose your placement for python 3.8 interpreter,also this would be
C:\python38\python.exe
for you.
Then it will work.
Also a quick note on the error you get when try to install to Anaconda is because
(base)
environment in not active.
This mean that you need to this for any other shell than
Anaconda prompt.
So here a active
(base)
then
pip
works for Anaconda,using
cmder here
G:\
λ cd Anaconda3\
G:\Anaconda3
λ G:\Anaconda3\Scripts\activate.bat
# NumPy is of course pre-installed in Anaconda
(base) G:\Anaconda3
λ pip install numpy
Requirement already satisfied: numpy in g:\anaconda3\lib\site-packages (1.16.2)
Also note that there is
conda that has same functionality as
pip
or a lot more,
but it's geared against Anaconda and is what should be used first when try to install to Anaconda.
(Jun-26-2020, 08:08 AM)snippsat Wrote: [ -> ]Look at image 992c5Mm there you see that interpreter used now is Anaconda located at C:\..\Anaconda3\python.exe
Configure a Python interpreter PyCharm
Go in and choose your placement for python 3.8 interpreter,also this would be C:\python38\python.exe
for you.
Then it will work.
Also a quick note on the error you get when try to install to Anaconda is because (base)
environment in not active.
This mean that you need to this for any other shell than Anaconda prompt.
So here a active (base)
then pip
works for Anaconda,using cmder here
G:\
λ cd Anaconda3\
G:\Anaconda3
λ G:\Anaconda3\Scripts\activate.bat
# NumPy is of course pre-installed in Anaconda
(base) G:\Anaconda3
λ pip install numpy
Requirement already satisfied: numpy in g:\anaconda3\lib\site-packages (1.16.2)
Also note that there is conda that has same functionality as pip
or a lot more,
but it's geared against Anaconda and is what should be used first when try to install to Anaconda.
That was precisely it. Thanks a lot.