在Linux服务器上的虚拟环境中安装Python模块的问题
我正在尝试安装Python软件包( enfollow noreferrer“> ensemblerna )在虚拟环境中(运行python 3.9) Linux服务器。我试图将此软件包作为Python模块安装时,就会出现我的问题。设置脚本以某种方式调用了我虚拟环境之外的其他python解释器,随后安装失败,因为找不到依赖关系。这是预期的行为吗?如果我不知道这个问题,我应该尝试在根上安装此软件包,而不是虚拟环境?
要添加更多详细信息:“男人页面”指示我运行sudo python setup.py install
。使用sudo
使用root,随后在错误消息中,我看到Python 2.7被调用。仅运行python设置。由于这是共享服务器,我宁愿不在根部安装此软件包的依赖项,所以有人知道如何在虚拟环境中安装此模块吗?
非常感谢您,请告诉我是否有其他信息有帮助。
I'm attempting to install a python package (ensembleRNA) within a virtual environment (running python 3.9) on a linux server. My problem arises when attempting to install this package as a python module as instrctucted by the man page. The setup script is somehow invoking a different python interpreter outside my virtual environment, and subsequently installation fails because the dependencies cannot be found. Is this expected behavior? Should I be trying to install this package on the root rather than a virtual environment if I can't figure out this issue?
To add a little more detail: The man page instructs me to runsudo python setup.py install
. Using sudo
uses the root, and subsequently in the error messages I see that python 2.7 is being invoked. Running just python setup.py install
yields a permission denied error, likely because of the hierarchy of the server. I would rather not install the dependencies for this package on the root for obvious reasons as this is a shared server, so does anyone have an idea of how I can get this module installed in my virtual environment?
Thanks so much in advance, please let me know if any additional information can be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论