Installing the Windows 64-bit Version of Pygame
Mar 18, 2015UPDATE: Apparently, this is no longer necessary. As of February, 2017, you can just run
pip install pygameand it will install the right version of pygame for your environment. (Thanks, Chek Wei).
I’m not a game developer, but I’ve been playing with Pygame lately and have been impressed. I plan to use it in one of our Python courses to teach object-oriented programming. I use 64-bit Windows 8, so I have the 64-bit version of Python 3.4. Most of our students are unlikely to be game developers, but because games have obvious visible objects, they provide a nice framework for teaching OOP.
Unfortunately, Pygame doesn’t have an official 64-bit installer, so they recommend you use the 32-bit version of Python. So, I installed the 32-bit version of Python alongside the 64-bit version I already had, but that was a pain as I had to constantly make sure I was running the right one. It also made the 32-bit version the default.
Luckily, Christoph Gohlke of the University of California, Irvine has made a bunch of 64-bit binaries available for Python extension packages, including one for pygame.
The installation file is a wheel file, which can be pretty tricky to install. The documentation is a bit weak, so I’ve laid it out here.
Note that these instructions assume you already have a 64-bit version of Python installed.
To install the Windows 64-bit version of Pygame, which is the only version that will work with the 64-bit version of Python, follow these steps:
- Make sure that your Path variable includes both your Python directory and the Scripts directory:
- Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
- Click pygame 1.9.2a0 cp34 none win_amd64.whl (for Python 3.4):
- Save the file locally. Do not rename the file as the file name structure is important.
- Wheel (.whl) files are installed using pip and wheel. So before installing the wheel file, you need to make sure you have an up-to-date version of pip and of wheel. To do this:
- Click the Windows icon and select Run:
- Type “cmd” in the Run prompt and press OK:
- PIP is used to unpack wheel files. At the prompt, type “python -m ensurepip”:
- If it tells you the requirement is already satisfied, run the upgrade command: “python –m ensurepip –upgrade”:
- Install wheel. At the command prompt, type “pip install wheel”:
- If it tells you the requirement is already satisfied, run the upgrade command: “pip install wheel –upgrade”:
- Click the Windows icon and select Run:
- Now you’re ready to install pygame 1.9.2a0 cp34 none win_amd64.whl. At the command line, make sure you’re in the same directory as the .whl file and then type “pip install pygame-1.9.2a0-cp34-none-win_amd64.whl”:
If you get an error saying the file name does not exists, it’s likely because you’re running the
pip installcommand from a different directory. Either use navigate to the correct directory (reference) and run the command again or run the command using a full absolute path (e.g., “pip install c:\users\nat\pygame-1.9.2a0-cp34-none-win_amd64.whl”).
Copiere useri intre grupuri
Active Directory: Copy Distribution List Members to Another Distribution List
Summary: In this example, we will copy all members from one Distribution Group to another Distribution Group.
Copy the contents below, modify according to your organization and save as copymembers.vbs to C: drive
Const ADS_GROUP_TYPE_GLOBAL_GROUP = &H2
Set objOU = GetObject("LDAP://OU=Security Groups, dc=company, dc=com")
Set objOldGroup = GetObject("LDAP://CN=mysourcegroup, ou=security groups, dc=company, dc=com")
Set objNewGroup = GetObject("LDAP://CN=mytargetgroup, ou=security groups, dc=company, dc=com")
On Error Resume Next
For Each objUser in objOldGroup.Member
objNewGroup.Add "LDAP://" & objUser
Open Command prompt:
The script will copy all members in the "mysourcegroup" Distribution List to your "mytargetgroup" Distribution List.
Install Windows from USB
Personal m-am saturat sa tot folosesc DVD pentru a instala Windows asa ca:
Creating a Bootable USB drive
You can use the ISO file of Windows Server 2008 R2 to create a bootable USB drive too.
For this scenario you need to create a bootable DVD first or mount the ISO file. After you have gained access to the files on the DVD or in the ISO file, simply type the following commands on a system with the image mounted or physical DVD copy in the drive and the USB device plugged in:
DISKPART> list disk
Select the USB device from the list and substitute the disk number below
DISKPART> select disk 1
DISKPART> create partition primary (hit enter for full space or add : size=xxx , where xxx = MB)
DISKPART> select partition 1
DISKPART> format fs=fat32 (or format quick fs=fat32)
xcopy X:\*.* /s/e/f Y:\
where X:\ is your mounted image or physical DVD and Y:\ is your USB
Dupa care se apuca USB-ul de capatul nemetalic, se implanta in computerul de instalat si se boot-eaza de pe el :)
PS: Merge si cu Windows 7 si cu 2k8