如何使用Easy_install安装鸡蛋文件?
在 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
处。
有谁知道为什么它说无法找到满足要求的版本
。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
三个月后,我想出了如何做到这一点。因此,可以使用名为
easy_install
的东西安装egg
文件,该东西是 早在 2019 年就已弃用。支持easy_install
的最后一个版本setuptools
是setuptools 42.0.0。
。因此,您需要按如下方式降级到该版本。
然后使用以下命令安装
egg
文件。如果您希望将
setuptools
升级到最新版本,请输入After 3 months, I figured out how to do this. So,
egg
files can be installed using something calledeasy_install
which was depreciated back in 2019. The last version ofsetuptools
that supportedeasy_install
wassetuptools 42.0.0.
.So, you need to downgrade to that version as follows.
And then install the
egg
files using the following command.If you wish to upgrade the
setuptools
to the latest version, then type