如何使用Easy_install安装鸡蛋文件?

发布于 2025-01-20 21:02:42 字数 998 浏览 4 评论 0 原文

在 HPC 节点上,我有一个名为 pysdf-0.1-py3.8-linux-x86_64.egg 的文件。

我找到了一份 Nvidia 手册,使用 python -m easy_install pysdf-0.1-py3.8-linux-x86_64.egg 安装此文件。

但是,当我运行此命令时,出现以下错误。

(/scratch/s.1915438/modulus) [s.1915438@sl1 eggs]$ python -m easy_install pysdf-0.1-py3.8-linux-x86_64.egg
/scratch/s.1915438/modulus/bin/python: No module named easy_install

同样,如果我按如下方式使用 pip install

(/scratch/s.1915438/modulus) [s.1915438@sl1 eggs]$ python -m pip install pysdf-0.1-py3.8-linux-x86_64.egg
ERROR: Could not find a version that satisfies the requirement pysdf-0.1-py3.8-linux-x86_64.egg (from versions: none)
ERROR: No matching distribution found for pysdf-0.1-py3.8-linux-x86_64.egg

我就没有 HPC 服务器上的管理员访问权限来使用 sudo apt。我的 python 安装在 HPC 计算机上的 /scratch/s.1915438/modulus/bin/python 处。

有谁知道为什么它说无法找到满足要求的版本

On a HPC node, I have a file named pysdf-0.1-py3.8-linux-x86_64.egg.

I found a Nvidia Manual to install this file using python -m easy_install pysdf-0.1-py3.8-linux-x86_64.egg.

However, when I run this command I get the following error.

(/scratch/s.1915438/modulus) [s.1915438@sl1 eggs]$ python -m easy_install pysdf-0.1-py3.8-linux-x86_64.egg
/scratch/s.1915438/modulus/bin/python: No module named easy_install

Similarly, if I use pip install as follows

(/scratch/s.1915438/modulus) [s.1915438@sl1 eggs]$ python -m pip install pysdf-0.1-py3.8-linux-x86_64.egg
ERROR: Could not find a version that satisfies the requirement pysdf-0.1-py3.8-linux-x86_64.egg (from versions: none)
ERROR: No matching distribution found for pysdf-0.1-py3.8-linux-x86_64.egg

I do not have admin access on HPC server to use sudo apt. My python is installed at /scratch/s.1915438/modulus/bin/python on the HPC machine.

Does anyone knows why it says Could not find a version that satisfies the requirement.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凯凯我们等你回来 2025-01-27 21:02:42

三个月后,我想出了如何做到这一点。因此,可以使用名为 easy_install 的东西安装 egg 文件,该东西是 早在 2019 年就已弃用。支持 easy_install 的最后一个版本 setuptoolssetuptools 42.0.0。

因此,您需要按如下方式降级到该版本。

pip3 install setuptools==42.0.0

然后使用以下命令安装egg 文件。

python3 -m easy_install example.egg

如果您希望将 setuptools 升级到最新版本,请输入

pip3 install setuptools --upgrade

After 3 months, I figured out how to do this. So, egg files can be installed using something called easy_install which was depreciated back in 2019. The last version of setuptools that supported easy_install was setuptools 42.0.0..

So, you need to downgrade to that version as follows.

pip3 install setuptools==42.0.0

And then install the egg files using the following command.

python3 -m easy_install example.egg

If you wish to upgrade the setuptools to the latest version, then type

pip3 install setuptools --upgrade
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文