ImportError: cannot import name 'ensure_object' #new env error # pandas

Hi guys, pandas working fine all the while until I set up a new environment to run Zipline package.



Pandas showing the error below after the new environment set up. Even the old envionment are not able to run the import function. 





in: import pandas as pd

out [ ]: ImportError: cannot import name 'ensure_object'

I even uninstall and install pandas packages but it is still the same. 

Does anyone know what is the reason and how to solve it? 

Thanks in advance. 

Hello Kheng,



There have been some issues with the zipline environment where some users have reported that the pandas library gives errors after installing zipline. Moreover, Quantopian, which developed zipline has closed and thus, the zipline library does not get any updates. 



Some users have reported installing pandas through pip solved their problem, but I am not sure if it will work.



If you want, you can try another python library, which is "zipline reloaded", which was created after Quantopian closed and is currently maintained by Stefan Jansen.



Hope this helps.