1

我使用 google colab,所以我想在我的本地 jupyter 环境中使用 google colab 包,所以在我本地的 jupyter 中安装 google.colab。之后,它开始向我显示操作系统错误,因此我删除了 2-3 次 python 并删除了所有库并重新安装了所有东西。

之后,我开始收到此错误

OSError: [WinError 193]当我在 jupyter notebook 中使用 pandas 库或任何其他库时,%1 不是有效的 Win32 应用程序。在过去的 5-6 个月里,我对此感到震惊,我感谢您的所有建议。


我在笔记本中使用此代码:

import pandas as pd
data = pd.io.stata.read_stata('TRADHIST_WP.dta')
data=data.to_csv('my_stata_file.csv')

并得到这个错误


OSError                                   Traceback (most recent call last)
<ipython-input-3-7e43326a167f> in <module>
----> 1 import pandas as pd
      2 data = pd.io.stata.read_stata('TRADHIST_WP.dta')
      3 data_csv=data.to_csv('my_stata_file.csv')

~\opencv\lib\site-packages\pandas\__init__.py in <module>
      9 for dependency in hard_dependencies:
     10     try:
---> 11         __import__(dependency)
     12     except ImportError as e:
     13         missing_dependencies.append(f"{dependency}: {e}")

~\opencv\lib\site-packages\numpy\__init__.py in <module>
    138 
    139     # Allow distributors to run custom init code
--> 140     from . import _distributor_init
    141 
    142     from . import core

~\opencv\lib\site-packages\numpy\_distributor_init.py in <module>
     24                 # NOTE: would it change behavior to load ALL
     25                 # DLLs at this path vs. the name restriction?
---> 26                 WinDLL(os.path.abspath(filename))
     27                 DLL_filenames.append(filename)
     28     if len(DLL_filenames) > 1:

c:\users\hp\appdata\local\programs\python\python36\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    346 
    347         if handle is None:
--> 348             self._handle = _dlopen(self._name, mode)
    349         else:
    350             self._handle = handle

OSError: [WinError 193] %1 is not a valid Win32 application
4

0 回答 0