0

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?
13
  • Why are you wanting to use .exe in a Ubuntu Server? Apr 27 at 14:18
  • 1
    Python is part of the Ubuntu OS. If you remove it, Ubuntu will stop working. You will have a broken system. Nothing will work.
    – user68186
    Apr 27 at 14:18
  • @user68186 Then how do I downgrade it then and achieve my goal?
    – Naisukhy
    Apr 27 at 14:30
  • @NicolasFormichella Well, I just want to downgrade Python and get PQCrypto installed. What do you suggest to achieve this?
    – Naisukhy
    Apr 27 at 14:31
  • Linux will not run .exe (well, it can, but not in your case) but Linux executables, I suggest you have a look at pyenv or at Docker containers Apr 27 at 14:35

0

Browse other questions tagged or ask your own question.