在Google Colab中安装Python软件包
我想在Google Colab中安装一个软件包。我尝试将setup.py
上传到我的驱动器,但没有运气。
可以找到该软件包在这里。
I wanted to install a package in Google Colab. I tried uploading the setup.py
to my drive but with no luck.
The package can be found here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需移动设置即可周围,它根本没有帮助您,它只包含设置软件包的说明。
对于该特定软件包(SDPA-P),我否则建议您尝试
!PIP install
您可以通过 https://sourceforge.net/projects/projects/sdpa/sdpa/files/sdpa-pa-pa-pa-p/sdpa-p/sdpap-0.2.1.1.1.tar 。最好的选择可能是从中构建一个二进制轮套,然后将其安装在Colab中……但是,这将是相当多的工作。
Just moving setup.py around doesn't help you at all, it just contains instructions on setting up the package.
For that particular package (SDPA-P), I would otherwise advise to try to
!pip install
the tarball you can download via https://sourceforge.net/projects/sdpa/files/sdpa-p/sdpap-0.2.1.tar.gz/download but it seems it relies on hard-coded paths:Installing that particular package will likely require quite some work; your best bet could be to build a binary wheel package out of it, and install that in Colab... but again, it'll be quite some work.