Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import numpy problem
#1
I guess this is basic issue, but lost some time on this, so I figured I should ask for help here.

Problem is that when I try to import numpy I get the message "No module named numpy"
There were several exe python files on my computer and no matter which I run I couldn't import numpy. In order to fix this I uninstalled all of them and installed Anaconda.
I checked environments tab under Anaconda and I can see that numpy is installed. And I run PyCharm through Anaconda.

I activated environment, so when I run python via Anaconda prompt everything works fine - I can work with numpy.
When I run python through Windows command prompt I have to activate environment with "activate base" every single time.
And when I try to run PyCharm through Anaconda nothing helps...I cannot import numpy no matter what I do...

Thanks for all the help.
Reply
#2
I found something that might help those who have similar problem.
In File->Settings->Project->Python Interpreter you have to manually add numpy and then it works...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 625 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,641 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  tbats and pmdarima import problem tody18 0 2,482 Aug-08-2019, 12:10 PM
Last Post: tody18
  import numpy in sub-files paul18fr 1 2,042 Aug-06-2019, 12:38 PM
Last Post: chakrimakam
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,006 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  ImportError: numpy.core.multiarray failed to import Nimya 3 20,617 Jun-12-2018, 02:32 PM
Last Post: volcano63
  not able to import numpy in pthon_d leiwengi 0 2,726 May-17-2018, 09:46 PM
Last Post: leiwengi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020