AI for trading
Opened this issue · 1 comments
sankhaMukherjee commented
Term1: Lesson 24: risk factor models, after installing the requirements, it says that the requirements are not properly installer.
You may wish to pip install --upgrade pip
immediately after generating the virtual environment so that the latest versions get loaded.
While loading the pandas library I get the following messages:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-11-7bd1771c8e08> in <module>()
1 import numpy as np
----> 2 import pandas as pd
3 import time
4 import os
5 import quiz_helper
/opt/conda/lib/python3.6/site-packages/pandas/__init__.py in <module>()
38
39 # let init-time option registration happen
---> 40 import pandas.core.config_init
41
42 from pandas.core.api import *
/opt/conda/lib/python3.6/site-packages/pandas/core/config_init.py in <module>()
10
11 """
---> 12 import pandas.core.config as cf
13 from pandas.core.config import (
14 is_bool, is_callable, is_instance_factory, is_int, is_one_of_factory,
/opt/conda/lib/python3.6/site-packages/pandas/core/config.py in <module>()
54 import warnings
55
---> 56 import pandas.compat as compat
57 from pandas.compat import lmap, map, u
58
AttributeError: module 'pandas' has no attribute 'compat'
sankhaMukherjee commented
I tried the following:
import sys
!pip install --upgrade pip
!pip install --upgrade numpy
!pip install --upgrade pandas
!pip install --upgrade scikit-learn
!pip install --upgrade six
!pip install --upgrade zipline
# !{sys.executable} -m pip install -r requirements.txt
and was able to continue.