Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in importing numpy
#1
I installed numpy (numpy-1.17.4-py36h4320e6b_0.tar.bz2) offline using the source: https://repo.continuum.io/pkgs/main/win-64/
When I check the installation using conda list, I have numpy installed, but when I am trying to import it I am getting an error as below

Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
Reply
#2
Several possibilities -
1. Bad download (but would think conda would recognize)
2. Multiple installations of Python, with numpy installed in some but not others. This is surprisingly easy to do. If I install using conda it goes into my iPython installation, in the currently selected environment. So, tensorflow is only installed in one conda environment not others. And, if you installed numpy in a iPython environment I don't believe that it would be visible in IDLE
3. More possibilities I am sure, but those are the ones that immediately come to mind.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pyarrow error when importing pandas sravva 1 933 Jun-06-2023, 05:09 PM
Last Post: snippsat
  Numpy error while filling up matrix with Characters august 4 1,847 Apr-13-2022, 10:28 PM
Last Post: august
  ERROR: importing desired module mbgamer28 0 1,674 Apr-05-2021, 07:46 PM
Last Post: mbgamer28
Bug Error while importing numpy Erfan 3 3,270 Nov-28-2020, 07:49 AM
Last Post: bowlofred
  Importing numPy Milfredo 2 1,879 Aug-23-2020, 09:00 AM
Last Post: Milfredo
  Odd numpy error with subtraction DreamingInsanity 5 2,718 Jun-01-2020, 02:49 PM
Last Post: DreamingInsanity
  Importing module from a package results in import error goghvv 2 2,382 Mar-27-2020, 07:13 PM
Last Post: goghvv
  Error importing package julio2000 3 3,758 Jan-26-2020, 06:15 PM
Last Post: buran
  Error in importing package in pycharm fullstop 0 2,341 Dec-12-2019, 04:03 PM
Last Post: fullstop
  Importing randon error bharat_s579 1 5,624 Jun-03-2019, 09:49 PM
Last Post: michalmonday

Forum Jump:

User Panel Messages

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