Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error while importing numpy
#1
Bug 
Hello,
I have installed Python 3.9 on windows 10(I also installed Anaconda). after that I installed pip because I wanna install numpy. but when I import numpy, I see error below. Does anyone know what should I do to solve this problem?
Thanks Heart
>>> import numpy as np
Error:
Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import numpy as np File "C:\Users\moham\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 305, in <module> _win_os_check() File "C:\Users\moham\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check raise RuntimeError(msg.format(__file__)) from None RuntimeError: The current Numpy installation ('C:\\Users\\moham\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
Thanks to all, specially bowlofred.
Quote:pip uninstall numpy
then
pip install numpy==1.19.3
Reply


Messages In This Thread
Error while importing numpy - by Erfan - Nov-28-2020, 07:28 AM
RE: Error while importing numpy - by ndc85430 - Nov-28-2020, 07:45 AM
RE: Error while importing numpy - by buran - Nov-28-2020, 07:46 AM
RE: Error while importing numpy - by bowlofred - Nov-28-2020, 07:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyarrow error when importing pandas sravva 1 942 Jun-06-2023, 05:09 PM
Last Post: snippsat
  Numpy error while filling up matrix with Characters august 4 1,870 Apr-13-2022, 10:28 PM
Last Post: august
  ERROR: importing desired module mbgamer28 0 1,688 Apr-05-2021, 07:46 PM
Last Post: mbgamer28
  Importing numPy Milfredo 2 1,899 Aug-23-2020, 09:00 AM
Last Post: Milfredo
  Odd numpy error with subtraction DreamingInsanity 5 2,747 Jun-01-2020, 02:49 PM
Last Post: DreamingInsanity
  Importing module from a package results in import error goghvv 2 2,409 Mar-27-2020, 07:13 PM
Last Post: goghvv
  Error importing package julio2000 3 3,786 Jan-26-2020, 06:15 PM
Last Post: buran
  Error in importing numpy fullstop 1 1,933 Dec-18-2019, 12:07 PM
Last Post: jefsummers
  Error in importing package in pycharm fullstop 0 2,356 Dec-12-2019, 04:03 PM
Last Post: fullstop
  Importing randon error bharat_s579 1 5,643 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