zipline ImportError: No module named 'pandas.io.data' - python

I have installed Microsoft Visual C++ 14.0 and I have uninstalled and installed Anaconda and packages(pandas, pandas-datareader) several times.
Now I installed zipline by pip install zipline but when I try to import zipline I got a importerror
Python 3.5.5 |Anaconda, Inc.| (default, Apr 7 2018, 04:53:16) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Anaconda3\envs\py35\lib\site-packages\zipline\__init__.py", line 25, in <module>
from . import data
File "C:\Anaconda3\envs\py35\lib\site-packages\zipline\data\__init__.py", line 1, in <module>
from . import loader
File "C:\Anaconda3\envs\py35\lib\site-packages\zipline\data\loader.py", line 26, in <module>
from pandas.io.data import DataReader
ImportError: No module named 'pandas.io.data'

Related

ImportError: No module named parse even after installing dataset and parse

I get the following error. I also installed PIP Parse and dataset using PIP install
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dataset
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27amd64\lib\site-packages\dataset\__init__.py", line 3, in <module>
from dataset.database import Database
File "C:\Python27amd64\lib\site-packages\dataset\database.py", line 3, in <module>
from urllib.parse import parse_qs, urlparse
ImportError: No module named parse

Installing Python package h5py in MinGW/MSYS2 throws ImportError

I installed h5py through the package mingw64-i686-python-h5py in MSYS2. Importing it in a MinGW shell throws the following error:
Python 3.8.2 (default, Apr 9 2020, 14:12:45) [GCC 9.3.0 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import h5py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:/msys64/mingw32/lib/python3.8/site-packages/h5py/__init__.py", line 34, in <module>
from . import version
File "C:/msys64/mingw32/lib/python3.8/site-packages/h5py/version.py", line 17, in <module>
from . import h5 as _h5
File "h5py/h5.pyx", line 1, in init h5py.h5
ImportError: DLL load failed while importing defs: The specified procedure could not be found.
Reinstalling the package did not fix it. I installed numpy the same way and it works just fine.

Cannot import python module pyo

I'm trying to import pyo for this project I'm working on but this is the output I get when I try to do so:
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\__init__.py", line 28, in <module>
from .lib import analysis as analysis
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\lib\analysis.py", line 32, in <module>
from ._core import *
File "C:\Users\spark\AppData\Roaming\Python\Python37\site-packages\pyo\lib\_core.py", line 58, in <module>
from .._pyo import *
ImportError: DLL load failed: The specified module could not be found.
I've tried uninstalling and downgrading pyo but I can't seem to get it to import. Can anyone help me out?

sklearn/sci-py on Windows (Python 3.5) DLL errors on import

I am trying to use sklearn in Windows 7 with Python 3.5, via the pre-compiled Windows binaries at http://www.lfd.uci.edu/~gohlke/pythonlibs/
I have installed
dask-0.7.5-py2.py3-none-any.whl
scikit_learn-0.17-cp35-none-win_amd64.whl
scipy-0.16.1-cp35-none-win_amd64.whl
numpy-1.9.3+mkl-cp35-none-win_amd64.whl
pandas-0.17.1-cp35-none-win_amd64.whl
without any errors at install time. Following another SO thread with the same error, I made sure that C:/python35 is both in my Path and is set as the PYTHONPATH.
I also have Visual Studio 2013 C++ installed.
When I go to import sklearn I get this error:
C:\Users\user>python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python35\lib\site-packages\sklearn\__init__.py", line 57, in <module>
from .base import clone
File "C:\Python35\lib\site-packages\sklearn\base.py", line 9, in <module>
from scipy import sparse
File "C:\Python35\lib\site-packages\scipy\sparse\__init__.py", line 213, in <module>
from .csr import *
File "C:\Python35\lib\site-packages\scipy\sparse\csr.py", line 13, in <module>
from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.
Update: BrianCain's suggestion to upgrade Visual Studio C++ to version 2015 worked!

“ImportError: No module named scipy” after installing the scipy package

I need help with the scipy Python module. I installed it, but when I try to import it, I get an error (no module named scipy). Why?
Here's the output from my Python interpreter:
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import scipy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import scipy
ImportError: No module named scipy

Categories