Python Forum
Python installation to folder. No admin rights
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python installation to folder. No admin rights
#1
Hi,
I succeeded once to make an installation of Python 2.7.16 to a folder. It's now a full usable python with all modules and add-on (such as pip and pyinstaller) functionnals.
The problem is that I can't remember how exactly I did it.
I think that I made the installation with msiexec in a dos console (cmd).
Maybe:

Quote:msiexec /a python-2.7.10.msi /qb TARGETDIR=C:\Users\sdasilva\Documents\test_install

The installation seems to start, but after few seconds, an error window appears saying that the file Readme.txt is missing:
"Source file not found: C:\Users\sdasilva\Documents\README.txt. Verify that the file exists and that you can access it."

That's weird.

Maybe the options passed to msiexec were different.
Somebody to help me?
Reply
#2
1) Why are you using python 2.x? It is the end of its life.
2) Why dont you set the install directory within the installer?
Recommended Tutorials:
Reply
#3
(Sep-19-2019, 11:23 AM)metulburr Wrote: 1) Why are you using python 2.x? It is the end of its life.
2) Why dont you set the install directory within the installer?

1: Because avionics and aeronautics love old things. And i'm not up to date too.
2: Tried with
"msiexec /a python-2.7.16.amd64.msi /qb"
the error didn't occurred, but I don't know where the files were copied to. Not in the current folder.

I managed to workaround the problem by using python 2.7.15 instead of 2.7.16 (my first post was saying 2.7.10, but it was 2.7.16). But I hope i will not have different behaviour.
Reply
#4
This works on Linux:
msiexec /i python-2.7.16.amd64.msi TARGETDIR="C:\myfolder" /qb
Here the full text from console:
andre@andre-GP70-2PE:~/Downloads$ msiexec /i python-2.7.16.amd64.msi TARGETDIR="C:\myfolder" /qb
andre@andre-GP70-2PE:~/Downloads$ ls ../.win
.wine/      .winff/     .winswitch/ 
andre@andre-GP70-2PE:~/Downloads$ ls ../.win
.wine/      .winff/     .winswitch/ 
andre@andre-GP70-2PE:~/Downloads$ ls ../.wine/drive_c/myfolder/
DLLs  include  libs         Microsoft.VC90.CRT.manifest  NEWS.txt      python.exe   README.txt  tcl
Doc   Lib      LICENSE.txt  msvcr90.dll                  python27.dll  pythonw.exe  Scripts     Tools
andre@andre-GP70-2PE:~/Downloads$ wine ../.wine/drive_c/myfolder/python.exe 
Python 2.7.16 (v2.7.16:413a49145e, Mar  4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 
I found the answer here: https://stackoverflow.com/questions/8839...-directory
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to add Python folder in Windows Registry ? Touktouk 1 206 Feb-20-2024, 01:04 PM
Last Post: DeaD_EyE
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 466 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  Python installation for old MacOS Yonix 1 457 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 780 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 1,464 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 915 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  python gzip all files from a folder mg24 3 3,812 Oct-28-2022, 03:59 PM
Last Post: mg24
  python installation/running inside singularity container erdemath 2 1,689 Sep-21-2022, 08:13 AM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,053 Aug-11-2022, 02:30 AM
Last Post: Danno
  Make a python folder .exe Extra 0 999 Jun-10-2022, 01:20 AM
Last Post: Extra

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020