본문 바로가기
IT/Python

anaconda 환경에서 32bit python 실행하기

by 티티알 2021. 4. 10.

 

(py38_32) D:\Stock\Kiwoom_datareader-master>python --version
Python 3.8.8

(py38_32) D:\Stock\Kiwoom_datareader-master>python Kiwoom_datareader_v0.1.py
Traceback (most recent call last):
  File "C:\Users\bianco\AppData\Roaming\Python\Python38\site-packages\pandas\__init__.py", line 29, in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
  File "C:\Users\bianco\AppData\Roaming\Python\Python38\site-packages\pandas\_libs\__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
ModuleNotFoundError: No module named 'pandas._libs.interval'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Kiwoom_datareader_v0.1.py", line 5, in <module>
    import pandas as pd
  File "C:\Users\bianco\AppData\Roaming\Python\Python38\site-packages\pandas\__init__.py", line 33, in <module>
    raise ImportError(
ImportError: C extension: No module named 'pandas._libs.interval' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --force' to build the C extensions first.

(py38_32) D:\Stock\Kiwoom_datareader-master>python setup.py build_ext --inplace --force
python: can't open file 'setup.py': [Errno 2] No such file or directory

(py38_32) D:\Stock\Kiwoom_datareader-master>pip install --upgrade --force-reinstall pandas
Collecting pandas
  Downloading pandas-1.2.3-cp38-cp38-win32.whl (8.2 MB)
     |████████████████████████████████| 8.2 MB 6.4 MB/s
Collecting pytz>=2017.3
  Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
     |████████████████████████████████| 510 kB 3.2 MB/s
Collecting numpy>=1.16.5
  Downloading numpy-1.20.2-cp38-cp38-win32.whl (11.4 MB)
     |████████████████████████████████| 11.4 MB 819 kB/s
Collecting python-dateutil>=2.7.3
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting six>=1.5
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, pytz, python-dateutil, numpy, pandas
  Attempting uninstall: six
    Found existing installation: six 1.15.0
    Uninstalling six-1.15.0:
      Successfully uninstalled six-1.15.0
  Attempting uninstall: pytz
    Found existing installation: pytz 2021.1
    Uninstalling pytz-2021.1:
      Successfully uninstalled pytz-2021.1
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.8.1
    Uninstalling python-dateutil-2.8.1:
      Successfully uninstalled python-dateutil-2.8.1
  Attempting uninstall: numpy
    Found existing installation: numpy 1.19.2
    Uninstalling numpy-1.19.2:
      Successfully uninstalled numpy-1.19.2
  Attempting uninstall: pandas
    Found existing installation: pandas 1.2.1
    Uninstalling pandas-1.2.1:
      Successfully uninstalled pandas-1.2.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
yfinance 0.1.55 requires lxml>=4.5.1, which is not installed.
yfinance 0.1.55 requires requests>=2.20, which is not installed.
tensorflow 2.4.1 requires h5py~=2.10.0, which is not installed.
tensorflow 2.4.1 requires typing-extensions~=3.7.4, which is not installed.
tensorflow-cpu 2.4.1 requires h5py~=2.10.0, which is not installed.
tensorflow-cpu 2.4.1 requires typing-extensions~=3.7.4, which is not installed.
tensorboard 2.4.1 requires requests<3,>=2.21.0, which is not installed.
tensorboard 2.4.1 requires werkzeug>=0.11.15, which is not installed.
pandas-datareader 0.9.0 requires lxml, which is not installed.
pandas-datareader 0.9.0 requires requests>=2.19.0, which is not installed.
keras 2.4.3 requires h5py, which is not installed.
keras 2.4.3 requires pyyaml, which is not installed.
dataframe 0.2.1.3 requires nose==1.3.7, which is not installed.
dataframe 0.2.1.3 requires sphinx>=1.4.5, which is not installed.
tensorflow 2.4.1 requires numpy~=1.19.2, but you have numpy 1.20.2 which is incompatible.
tensorflow-cpu 2.4.1 requires numpy~=1.19.2, but you have numpy 1.20.2 which is incompatible.
Successfully installed numpy-1.20.2 pandas-1.2.3 python-dateutil-2.8.1 pytz-2021.1 six-1.15.0

(py38_32) D:\Stock\Kiwoom_datareader-master>python Kiwoom_datareader_v0.1.py
Traceback (most recent call last):
  File "Kiwoom_datareader_v0.1.py", line 12, in <module>
    from kiwoomAPI import KiwoomAPI
  File "D:\Stock\Kiwoom_datareader-master\kiwoomAPI.py", line 7, in <module>
    from PyQt5.QAxContainer import *
ModuleNotFoundError: No module named 'PyQt5.QAxContainer'

(py38_32) D:\Stock\Kiwoom_datareader-master>pip install --upgrade --force-reinstall pyqt5
Collecting pyqt5
  Using cached PyQt5-5.15.4-cp36.cp37.cp38.cp39-none-win32.whl (5.4 MB)
Collecting PyQt5-sip<13,>=12.8
  Using cached PyQt5_sip-12.8.1-cp38-cp38-win32.whl (51 kB)
Collecting PyQt5-Qt5>=5.15
  Using cached PyQt5_Qt5-5.15.2-py3-none-win32.whl (43.4 MB)
Installing collected packages: PyQt5-sip, PyQt5-Qt5, pyqt5
Successfully installed PyQt5-Qt5-5.15.2 PyQt5-sip-12.8.1 pyqt5-5.15.4

(py38_32) D:\Stock\Kiwoom_datareader-master>python Kiwoom_datareader_v0.1.py