I'm trying to install (& run) Pyserial but I'm failing big time. I unpacked the files and put them in a folder I made. C: Python PyserialI went to the directory in the command prompt and typed. Python setup.py install.I thought I was good but I get this error. Import error: No module named serial.I read this thread and installed the windows extensions.
I've read people talking about setting the access in PYTHONPATH, but I have no idea how to do that. I also downloaded the 'easy installer'. Unfortunately, I don't know how to install (or run) the easy installer.
[Python] serial I/O install fail -- DLL not found; Fossil. Nov 1, 2010 at 9:55 pm: Just starting with Python. Installed: Python 2.7 pywin32-214.win32-py2.7.exe. Installed third-party modules such as the ones above should be located in E: Python27 lib site-packages. It would appear that some zip files were incorrectly extracted into this.
(I tried running 'python setup.py install', but an error message came up.) Any suggestions? You'll need to tell us what error messages come up. It's conceivable that python itself isn't in your path. I don't use windows, and it's probably different for different flavours, but from memory, you can go to computer, right-click, properties, system, advanced, environment variables. There's a system variable called path. This is a list of places where windows goes to look when you run a program. The python path needs to be in there.
So you can edit the variable, go to the end of what's there already, add a ';' and then add more paths. If this doesn't work, please give us more details about the errors, your operating system, and the python installation. I checked the path as you said. Sure enough, it listed;C: python22;I changed it to the new version.;C: python26;Then I reinstalled pyserial from the command prompt with python setup.py installI ran my simple program. The 'No module name serial' error is gone.
Instead, I'm getting a new error. Can I pick your brain once more? This is my error message: IDLE 2.6.5 No Subprocess Traceback (most recent call last): File 'C: Python26 Andy serialtest.py', line 6, in ser.open File 'C: Python26 lib site-packages serial serialwin32.py', line 56, in open raise SerialException('could not open port%s:%s'% (self.portstr, ctypes.WinError)) SerialException: could not open port COM2: Error 2 The system cannot find the file specified. It said it cannot open COM2. This is odd because I'm trying to use COM1 in my test program. I know from Device Manager that COM1 is my computer's serial port.
My program is listed below.