简体   繁体   English

在虚拟环境中安装python软件会显示“权限被拒绝”错误

[英]Installing python software in virtual environment gives 'Permission denied' error

I am trying to install a piece of python software on our server( http://integronfinder.readthedocs.io/en/v1.5/ ). 我正在尝试在我们的服务器上安装一个python软件( http://integronfinder.readthedocs.io/en/v1.5/ )。 However, I am not the server administrator and cannot run the command under sudo , as I get a 'permission denied' error when I try it. 但是,我不是服务器管理员,因此无法在sudo下运行命令,因为尝试该命令时会出现“权限被拒绝”错误。 I tried circumventing the problem through creating a virtual environment and installing the program there, but I still get the same error! 我尝试通过创建虚拟环境并在其中安装程序来解决该问题,但仍然遇到相同的错误!

(my_root) [user1@server Integron_Finder-1.5]$ python setup.py install
running install
running build
running build_scripts
changing mode of build/scripts-2.7/integron_finder from 664 to 775
running install_scripts
moving build/scripts-2.7/integron_finder.tmp -> build/scripts-2.7/integron_finder
copying build/scripts-2.7/integron_finder -> /home/user1/.conda/envs/my_root/bin
changing mode of /home/user1/.conda/envs/my_root/bin/integron_finder to 775
running install_data
creating /usr/share/integron_finder
error: could not create '/usr/share/integron_finder': Permission denied

Installing the software in a virtual environment is also what the developers suggest for users that do not have administrator rights. 开发人员还向没有管理员权限的用户建议在虚拟环境中安装软件。 Can someone tell me what I am doing wrong and how I could try to fix it? 有人可以告诉我我做错了什么,我该如何解决?

Use a virtual env is a good idea and it should work even if you have no admin rights. 使用虚拟环境是个好主意,即使您没有管理员权限,它也应该可以使用。

I am one of the Integron_finder package dev. 我是Integron_finder软件包开发人员之一。 You should submit an issue on the github page of the project with all details. 您应该在项目的github页面上提交问题,并提供所有详细信息。 I will check quickly what goes wrong in the installation with a virtualenv. 我将使用virtualenv快速检查安装中出了什么问题。

除了尝试以某种方式获得sudo许可外,您无能为力。

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

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