I am very new to Ubuntu and I'm running a Linode server using Ubuntu 22. I have added the Python files that I have intended on running on the server, here is the dilemma though.
I have a module named PQCrypto that not only needs Python 3.7.0
specifically to work, but it also needs to be installed manually, as installation via pip, conda or any other alternate method will render installation impossible. I would like to move my Python folder (the one containing the .exe for Python 3.7.0 and all of my downloaded packages) into Ubuntu so it can run my code.
So what I would like to know is the following...
- How do I remove the current Python on Ubuntu installed by default? (Python Version 3.10.4)
- How do I move my Python folder into Ubuntu so when I run my file on the server
again, it has the correct version installed, and all of the packages
pre-installed?
.exe
in a Ubuntu Server? – Nicolas Formichella Apr 27 '22 at 14:18.exe
(well, it can, but not in your case) but Linux executables, I suggest you have a look atpyenv
or at Docker containers – Nicolas Formichella Apr 27 '22 at 14:35apt
command, and are restricted to using only snap packages. Ubuntu products using the year format are snap only, unlike the year.month format (ie. 22 != 22.04) – guiverc Apr 27 '22 at 22:46python3
from your system, you'll lose access to all Ubuntu tools that rely on it; and those same tools maybe unreliable or not function if a different python3 version is put there instead (ie. you may corrupt your system without realizing it). Removing the defaultpython
(python3) is not advisable unless you know exactly what you're doing & can deal with all consequences (avoid all system tools that rely use python) – guiverc Apr 27 '22 at 23:04