Want to share pyenv environment with multiple users on the same machine

Asked 2 years ago, Updated 2 years ago, 66 views

I am a beginner in Linux.I am studying using Amazon Linux.

I would like to use Pyenv not only ec2-user but also root, ec2-user2, ec2-user3, etc.
In that case, what kind of composition is appropriate for Linux?
Install as root, install as /usr/local/.pyenv, and
I added root and ec2-user to the development user group, but
The permission of pip coming in with pienv 3.5.2 was 755, so
It seemed to be available only to users who installed it.
Is there any good way to change the executable file such as pip to 775 every time I install a new version in pyenv?

I have another question,
Is it right to manage executable files such as pyenv for each installed user?

-----------------------------------

Traceback (most recent call last):
  File"/usr/local/.pyenv/versions/3.5.2/lib/python 3.5/shutil.py", line 538, in move
    os.rename(src,real_dst)
PermissionError: [Errno13] Permission denied: '/usr/local/.pyenv/versions/3.5.2/envs/test/bin/pip'->'/tmp/pipe-cvofnnvv-uninstall/usr/local/.pyenv/versions/3.5/pipest/pipest

Thank you for your cooperation.

python linux pyenv

2022-09-30 21:21

1 Answers

Thank you for your comment.
I will write down what I have researched at this stage.


so that the composer can be installed on the system. I thought you were installing pyenv in the system, but


See installation instructions in pyenv's github https://github.com/yyuu/pyenv

 git clone https://github.com/yyuu/pyenv.git~/.pyenv

Installing in the home directory.
In other words, the pyenv command is not used in common, and
Manage/install for each user, so
It is not managed by multiple users.
is the conclusion at this stage.

It may be a mistake, so please continue to point it out and give us.
Thank you for your cooperation.


2022-09-30 21:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.