安装和导入多个版本的 Python 包 [英] Installing and importing multiple versions of a Python package

查看:62
本文介绍了安装和导入多个版本的 Python 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Dataiku DSS v6.0,它使用 pandas==0.23 并且无法手动升级.我也在尝试使用 modin==0.6,它只与 pandas==0.25 兼容.我曾尝试使用需要 pandas==0.23modin==0.3,但是这个旧版本在我调用的一些 Pandas 方法中抛出异常.

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.

有什么解决方法吗?我可以以某种方式强制 modin==0.6 接受 pandas==0.23 吗?否则有没有办法同时安装 pandas==0.23pandas==0.25 并强制 DSS 使用 0.23 和 modin 使用 0.25?

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提供了code 环境.通过使用此功能,您可以为自己的代码或其他特定操作拥有一组单独的依赖项.

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

这篇关于安装和导入多个版本的 Python 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆