#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목openpyxl runtime error2020-11-23 16:45
작성자

<해결>

numpy 1.19.4 대신에 numpy 1.19.3을 설치했습니다. 설치중에 ERROR창이 떠서 적절한 해결방법을 찾았나요...?


pip install numpy==1.19.3

Collecting numpy==1.19.3

  Downloading numpy-1.19.3-cp38-cp38-win_amd64.whl (13.3 MB)

     |████████████████████████████████| 13.3 MB 342 kB/s

Installing collected packages: numpy

  Attempting uninstall: numpy

    Found existing installation: numpy 1.19.4

    Uninstalling numpy-1.19.4:

      Successfully uninstalled numpy-1.19.4

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 액세스가 거부되었습니다: 'C:\\Users\\XD8D\\AppData\\Local\\Programs\\Python\\Python38\\Lib\\site-packages\\~umpy\\.libs\\libopenblas.NOIJJG62EMASZI6NYURL6JBKM4EVBGM7.gfortran-win_amd64.dll'

Consider using the `--user` option or check the permissions.


WARNING: You are using pip version 20.1.1; however, version 20.2.4 is available.

You should consider upgrading via the 'c:\users\xd8d\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.



텀프로젝트에서 openpyxl을 사용하고 있습니다. 지금까지는 잘 되다가 갑자기 runtime error이 발생해 재설치를 했음에도 똑같은 오류가 발생하고 있습니다. 해결방법이 있을까요...? 감사합니다.


<VS code>


The current Numpy installation ('C:\\Users\\XD8D\\AppData\\Local\\Programs\\Python\\Python38\\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

File "C:\Users\XD8D\Desktop\202002\웹파이썬프로그래밍\Term Project\stock_simulator.py", line 3, in <module> import openpyxl

PS C:\Users\XD8D\Desktop\202002\웹파이썬프로그래밍\Term Project> cd 'c:\Users\XD8D\Desktop\202002\웹파이썬프로그래밍\Term Project'; & 'C:\Users\XD8D\AppData\Local\Programs\Python\Python38\python.exe' 'c:\Users\XD8D\.vscode\extensions\ms-python.python-2020.11.371526539\pythonFiles\lib\python\debugpy\launcher' '54718' '--' 'c:\Users\XD8D\Desktop\202002\웹파이썬프로그래밍\Term Project\stock_simulator.py' ** On entry to DGEBAL parameter number 3 had an illegal value ** On entry to DGEHRD parameter number 2 had an illegal value ** On entry to DORGHR DORGQR parameter number 2 had an illegal value ** On entry to DHSEQR parameter number 4 had an illegal value 

<Jupyter notebook>

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-1-7372d6d115b7> in <module>
      1 import requests
      2 import re
----> 3 import openpyxl
      4 import random
      5 import locale

~\AppData\Local\Programs\Python\Python38\lib\site-packages\openpyxl\__init__.py in <module>
      2 
      3 
----> 4 from openpyxl.compat.numbers import NUMPY, PANDAS
      5 from openpyxl.xml import DEFUSEDXML, LXML
      6 from openpyxl.workbook import Workbook

~\AppData\Local\Programs\Python\Python38\lib\site-packages\openpyxl\compat\__init__.py in <module>
      1 # Copyright (c) 2010-2020 openpyxl
      2 
----> 3 from .numbers import NUMERIC_TYPES
      4 from .strings import safe_string
      5 

~\AppData\Local\Programs\Python\Python38\lib\site-packages\openpyxl\compat\numbers.py in <module>
      7 
      8 try:
----> 9     import numpy
     10     NUMPY = True
     11 except ImportError:

~\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\__init__.py in <module>
    303 
    304     if sys.platform == "win32" and sys.maxsize > 2**32:
--> 305         _win_os_check()
    306 
    307     del _win_os_check

~\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\__init__.py in _win_os_check()
    300                    "See this issue for more information: "
    301                    "https://tinyurl.com/y3dm3h86")
--> 302             raise RuntimeError(msg.format(__file__)) from None
    303 
    304     if sys.platform == "win32" and sys.maxsize > 2**32:

RuntimeError: The current Numpy installation ('C:\\Users\\XD8D\\AppData\\Local\\Programs\\Python\\Python38\\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
 
댓글