MrWu Posted July 11, 2019 Posted July 11, 2019 Dear all One of my least favourite program to install and image ! Anyone have a good guide to integrating Python 3.7 + and Pygame 1.9.1 (or indeed previous versions) always stresses my technicians out because it a pain in the proverbial to get working in a network reliably (also Mu as well!) Do you deploy it manually later or deploy Python / Pygame within MDT? Ta!
mavhc Posted July 11, 2019 Posted July 11, 2019 Or stick to a python with a sane installer. I complained but they said it's the new MS recommendation to not do things properly. Pygame has msi installer, never had a problem there. 1
mdrabble Posted July 11, 2019 Posted July 11, 2019 I use SCCM to deploy Python followed including various modules and Pycharms Python Install CMD python-3.7.3-amd64.exe InstallAllUsers=1 PrependPath=1 Include_test=1 /quiet I then run a batch file with the following commands cd "C:\Program Files\Python37\Scripts" pip install --upgrade pip pip install pygame numba numpy pandas matplotlib xmltodict Pychams Install CMD - pycharm-edu-2019.1.1.exe /S /CONFIG=edu_silent.config edu_silent.config file ; Installation mode. It can be user or admin. ; NOTE: for admin mode please use "Run as Administrator" for command prompt to avoid UAC dialog. mode=admin ; Desktop shortcut for launchers launcher32=0 launcher64=1 ; Add launchers path to PATH env variable updatePATH=1 ; Download and install jre32. This may take a few minutes. jre32=0 ; Download and install python. This may take a few minutes. python2=0 python3=0 ; Regenerating the Shared Archive ; [url]https://docs.oracle.com/en/java/javase/11/vm/class-data-sharing.html[/url] regenerationSharedArchive=1 ; List of associations. To create an association change value to 1. .py=0 2
MrWu Posted July 11, 2019 Author Posted July 11, 2019 Or stick to a python with a sane installer. I complained but they said it's the new MS recommendation to not do things properly. Pygame has msi installer, never had a problem there. Thank you, I'm testing Python 3.7.4 and it seems to install this in the Administrator App directory which I think stops it from loadinf if logged on as a student (with redirected start menus) Also with Pygame is it simply a matter of running the pygame executable? The Py docs on the website isn't very clear at all. Thanks!
mavhc Posted July 11, 2019 Posted July 11, 2019 Pygame is a python module, so there's nothing to run 1
mdrabble Posted July 11, 2019 Posted July 11, 2019 using InstallAllUsers=1 should install into program files I opted to use PIP so it would install the correct version instead of fiddling around with finding the correct MSI version. 1
MrWu Posted July 11, 2019 Author Posted July 11, 2019 using InstallAllUsers=1 should install into program files I opted to use PIP so it would install the correct version instead of fiddling around with finding the correct MSI version. Thank you. I ran the command line in your first post but weirdly Python puts the program under this location? C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.7 The command line I used was thsi: python-3.7.4.exe InstallAllUsers=1 PrependPath=1 Include_test=1 /quiet Any ideas? Thanks !
mdrabble Posted July 11, 2019 Posted July 11, 2019 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.7 - is that not the shortcut location?? Have a look under C:\Program Files and you should see Python37
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now