简体   繁体   English

如何在联网的计算机上安装软件包

[英]How to install packages on networked computer

I'm using an Ipython2.7 notebook to run some code.我正在使用 Ipython2.7 笔记本来运行一些代码。 Recently discovered that all my data was corrupted and I need to do it all again (meaning I am very very behind schedule) I figured I could half the time required if I could run it on a second computer.最近发现我所有的数据都被损坏了,我需要重新做一遍(这意味着我非常非常落后于计划)我想如果我可以在第二台计算机上运行它,我可以减少一半的时间。 So I've gone into a uni computer cluster where the computers have python 2.7 installed.所以我进入了一个 uni 计算机集群,其中计算机安装了 python 2.7。 I can open the notebook, but it won't run as the first line is我可以打开笔记本,但它不会像第一行那样运行

import mlpy.wavelet

And it gives me an import error.它给了我一个导入错误。 I've tried downloading and installing it from sourceforge, but it seems to install it to the a Q drive, which I don't have access to.我已经尝试从 sourceforge 下载并安装它,但它似乎将它安装到我无权访问的 Q 驱动器上。 I am completely lost on what to do here, I can't even remember how I first installed it on my laptop.我完全不知道在这里做什么,我什至不记得我是如何第一次在我的笔记本电脑上安装它的。 I have a feeling I pip installed it but I have no clue how to do this on a uni comp.我有一种感觉,我 pip 安装了它,但我不知道如何在 uni comp 上执行此操作。

Any rapid responses would be greatly appreciated任何快速反应将不胜感激

You can use pip to install packages in your user's home directory.您可以使用 pip 在用户的主目录中安装软件包。 Run pip install --user mply to install mply and your other dependencies.运行pip install --user mply以安装 mply 和其他依赖项。

See this answer for reference.请参阅此答案以供参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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