简体   繁体   中英

Installing and importing multiple versions of a Python package

I am using Dataiku DSS v6.0 which uses pandas==0.23 and this cannot be manually upgraded. I am also trying to use modin==0.6 , which is only compatible with pandas==0.25 . I have tried using modin==0.3 which requires pandas==0.23 , but this older version is throwing exceptions with some of the pandas methods I am calling.

Is there any workaround to this? Can I somehow force modin==0.6 to accept pandas==0.23 ? Otherwise is there a way in which I can install both pandas==0.23 and pandas==0.25 and force DSS to use 0.23 and modin to use 0.25?

Dataiku is provided with a concept of c ode environments . by using this feature you can have a separated set of dependancies for your own code or for other specific operations.

Starting with DSS 8.0.0 Pandas 1.0 is supported

However, recents versions of modin rely on more recents version of pandas ; modin==0.8.0 allows pandas==1.0.5 so that the most recent version of modin compatible with DSS as of today

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM