I want to run python3 on our school computers (under Windows) during our programming classes. I installed python 3.1 onto a USB flash drive at home (using Windows), and brought it to school. However, it gives me the following error:
The program can't start because python31.dll is missing from your computer. Try reinstalling the program to fix this problem.
How do I get the file, where do I put it (can I put it onto the USB itself?) and/or is there a better alternative for python3 portability?
The reason why I don't simply use an online editor is because I also want to have pygame along with python on the USB.
If you installed python on your home PC "for all users" the .dll is in the c:\windows\system32\ (or equivalent).
Copy it to your USB drive folder or reinstall python "just for me" on the USB drive so it contains everything in one place.
Related
Now, the only working operating system is Windows 10. When I go to my Pc in windows, I don't even see my hhd. Is there anyway to save this mess? I tried to unplug my ssd and see if ubuntu shows but nothing.
You probaly go two problems here, the first one is:
the only working operating system is Windows 10.
You probably just replace the default boot drive with the drive where Windows is installed, in this case, you will need to change the boot order, and place the HHD where ubuntu is installed as the first option on the boot order list, (this guide can give you some idea of how to do it. ) after this you will probably see the grub system selector page when your PC starts.
Now to the second problem:
When I go to my Pc in windows, I don't even see my hhd.
The reason that Ubuntu drive doesn't show up is that Windows and Ubuntu use different types of file system technology. Windows uses NFTS and Linux (Ubuntu, Debian, etc) uses EXT4, Windows doesn't support EXT4. To see the Ubuntu drive on Windows, you will need to divide the Ubuntu drive into two partitions, one EXT4 for Ubuntu and another one in NFTS.
I want to open a PowerPoint file when I plug in the USB Drive. I know that there is something called Autorun, but I do not know how to make it open a file in my USB Drive.
Windows had a built in feature where you could set a USB to auto run on any machine when it was plugged in. It would usually prompt the user if they wanted to run the files. but some clever fellows figured out how to bypass this prompt and used it to maliciously run code from the USB as soon as it was plugged in. Windows 10 patched out the ability to auto run flash drives meaning that without finding a work around it is unlikely that you will get a USB to auto run.
I created a bootable image on a USB drive using this method:
https://www.macissues.com/2015/10/01/how-to-overcome-os-x-10-11-el-capitan-not-installing/
Basically, formatting a USB drive, calling it INSTALLER, and using a previously downloaded installer to create the bootable image on the thumb drive with this command:
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/INSTALLER --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
This seems to work, and the install process does indeed kick off after reboot, but now the problem is that when I get to the screen where I am asked to select which drive to install OS X on, I am given two choices: The INSTALLER drive (a USB drive I am booting from) and "(null)". The icon above (null) is that of a standard hard drive, so I select it and am given the error message that there is not enough space on (null) to install OSX.
So, first, that is not the name of the drive. And second, according to my disk utility I have over 140 gigs free on the drive so I know this is just a false error on the part of the installer.
So how to resolve? I have tried installing several times and I get the same result each time so I know it is not a one-off problem. Why is the hard drive detecting as (null)?
The 251 gig volume is a single volume with Mac OS Extended (Journaled) format, and currently is running Yosemite:
Symantec products are poison to Macs, it seems. What was happening in my case is that there was a product called Symantec Endpoint Encryption that had encrypted the entire drive, which was hiding it from the installer. Once I figured out how to decrypt the drive using the Symantec utility I was able to run the install without problems.
I hope this helps someone else. Good luck!
I have CD with window 7, I can install windows from this cd, but disc is't mine. So, I want to make a copy on my usb flash drive. I made iso copy of cd disc with WinISO, then I wrote this iso file on my flash drive with "Iso to Usb".
Now I try to install windows from this flash. I have 1tb hdd, I created 100gb partition and get 100gb partition, but when I did the same with with Windows cd disc, it creates 100 gb primary partition and 100 mb system partition.
So, when I tried to install windows in 100 gb partition from cd it installed, but when I tried to install from usb I got exception: "setup was unable to create new system partition".
Why so? Why I do the same steps and I can install from cd, but can't install from usb?
Why usb windows didn't create system partition? And how to fix it?
When installing using a flash-drive perform the following steps:
Step by step instruction:
When the boot setup starts from USB drive
Press Shift+F10
The command prompt will open.
In console type diskpart.exe and press enter. In this program execute following:
select disk=0. Disk 0 is your destination drive, so be careful, all information on this drive will be removed.
create partition primary size=xxx, where xxx – is the size of new partition
select partition=1
active
format fs=ntfs quick
assign
exit
4.exit
5.Now close the setup and restart.
This should solve your problem as it did mine.
Windows usually creates a partition with enought space for the system.
You can try to just take the 1tb HDD as target for installation, and windows will create a partition automatically.
Otherwise, your ISO-Copy may be corrupted.
You could easily download the ISO-Files from here.
Option: Make a Copy of the CD and try with that one?
Having installed windows 7 from a USB drive many times, I've found that if you're trying to install using a USB 3.0 flash drive, then you will get the "setup was unable to create new system partition" error message.
Since I couldn't find any solutions to this at the time, I was fiddling with everything to try to make it work. Eventually I found out an interesting (but strange) solution:
Go through the install process until you get to the screen that asks you to select a partition for the windows installation
Make sure your desired partition is listed, and that its formatted correctly
Unplug the USB drive
Press 'Refresh' (ONCE) to refresh the partition list/window (ONLY press refresh)
Plug the USB drive back in (use the same port as before)
Select the destination partition for the Windows installation, and try to begin the installation
I've done this a few times now on different machines, and it's worked like a charm.
I believe it has something to do with Windows 7 not natively supporting USB 3.0 and/or USB drives with SSD controllers.
Windows is probably seeing the USB drive as the main hard drive, because you have probably made it the first boot device in the BIOS. This will result in Windows trying to install to the install drive.
To solve this problem, make the internal HDD the first boot device, then press F12 or whatever key for boot device selection your BIOS requires.
For a customer we created a software which will be installed at about 350 USB sticks. Now we want that this .exe is automatically executed when the stick is plugged into the PC.
A few years ago we used the simple autorun.inf method.
But for Windows 7 and later Windows versions this function is not longer working as I've seen. That makes me a little bit wondering because in my system control I can select how the drive will be opened. At "software and games" I selected "always ask", then I put this Autorun.inf on the stick:
[autorun]
open=Demo1.exe
But it's not working. The only thing that Windows makes when I plug the stick into, it asks whether I want to open the drive folder.
What I have to do that the software starts automatically OR a window opens in which the user can decide to run the executable or don't do that?
For Windows 7 and later only optical drives can specify auto run tasks. Indeed earlier versions of Windows can be patched to behave the same way. This change was made in response to the Conficker worm.
So your goal simply cannot be achieved. You will need to instruct users to explore the memory stick and run a specific program manually.
You cannot specify autorun.inf tasks for USB drives. Read here for futher Information: http://blogs.msdn.com/b/e7/archive/2009/04/27/improvements-to-autoplay.aspx
Previous answers from David Heffernan and Mofi are right. Only CD/DVD/Optical drives are allowed to specify auto run tasks.
BUT, if you identify the manufacturer of the USB chip and get the firmware management tool for this chip, you can reconfigure it and get the USB to appear as a CD drive to the OS.
If this seems an overhelming task, you can get your USB created by some companies dedicated to the distribution of multimedia content.
And Microsoft released for Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008 the security hotfix KB967940 explained at Microsoft Security Advisory (967940) which disables the autorun feature for all drives except CD and DVD drives. See also ZDNet article Microsoft disables AutoRun on Windows XP/Vista to prevent malware infections.
So it is not possible anymore that something is automatically started when a writable USB flash memory device is plugged in to prevent malware to run automatically.