You are not logged in.

#1 2020-02-13 05:14:38

nastynes
Member
Registered: 2020-02-13
Posts: 3

Installing Python3.6 without root? [Solved]

I am trying to set up a virtualenv that uses Python3.6. Python3.6 is not currently installed on this server (which I have admin access to, but don't want to use it because the sysadmin will eat my head if I break something..)
Is there any way I can install Python3.6 to a user level so it doesn't break anyone elses code / cause the sky the fall?
I guess what I want is a virtualenv in which to install python3.6 without needing root, so I can create another virtualenv that uses python3.6, but I don't think that's how it works..


I need Python3.6 so I can use tensorflow, irrelevant but may as well include.

Much appreciated

Last edited by nastynes (2020-02-14 03:48:25)

Offline

#2 2020-02-13 06:16:55

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Installing Python3.6 without root? [Solved]

pacman -S python-tensorflow

Alternatively, you may download the source code from https://www.python.org/downloads/release/python-381/ and build it.

Alternatively alternatively, you may install Gentoo Prefix which is basically Gentoo as a private collection of software in $HOME rather than an entire operating system.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-02-13 23:10:00

nastynes
Member
Registered: 2020-02-13
Posts: 3

Re: Installing Python3.6 without root? [Solved]

Thanks, that did it. smile

Offline

#4 2020-02-13 23:14:02

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Installing Python3.6 without root? [Solved]

Which one did it, as a matter of curiosity?

Also, since your issue is solved, please remember to edit the first post of this thread, and add "[Solved]" to the thread title.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2020-02-14 01:43:01

romstor
Member
Registered: 2018-08-18
Posts: 54

Re: Installing Python3.6 without root? [Solved]

With systemd-nspawn you can install your own arch in a directory. Not sure though if sudo is required when that directory is in $HOME.

Offline

#6 2020-02-14 03:55:00

nastynes
Member
Registered: 2020-02-13
Posts: 3

Re: Installing Python3.6 without root? [Solved]

eschwartz wrote:

Which one did it, as a matter of curiosity?

Also, since your issue is solved, please remember to edit the first post of this thread, and add "[Solved]" to the thread title.

'pacman -S python-tensorflow' required sudo and seems like it would do a system wide install which I'd like to avoid, so I tried the second option which worked well.

If everything breaks I will let the sysadmin know your username wink

Last edited by nastynes (2020-02-14 03:56:40)

Offline

Board footer

Powered by FluxBB