[Tutor] hard time importing a module

Tim Golden mail at timgolden.me.uk
Fri Apr 19 17:52:39 CEST 2013


On 19/04/2013 16:39, eryksun wrote:
> On Fri, Apr 19, 2013 at 11:12 AM, Oscar Benjamin
> <oscar.j.benjamin at gmail.com> wrote:
>> Did these files also come with a file called setup.py?
>>
>> Normally, a Python module is not installed by manually copying the
>> files to the appropriate places but by running 'python setup.py
>> install' in the terminal. This will compile any C code and copy files
>> to the appropriate places. Note that you will need to have separately
>> installed a C compiler to be able to compile C code.
> 
> I think this is the SendKeys module in question:
> 
> http://web.archive.org/web/20121002234104/http://www.rutherfurd.net/python/sendkeys
> 
> You can get the zipped source from archive.org above, along with
> binaries for 2.1-2.6. The source  has a setup.py, but as Oscar said
> already you'll need a C compiler. You can use Visual Studio 2008 to
> compile it for 2.6/2.7. There are direct links for VS 2008 Express
> edition (free as in beer) in this SO answer:

As usual, the excellent  Christoph Gohlke has provided binaries for a
range of targets:

  http://www.lfd.uci.edu/~gohlke/pythonlibs/

TJG


More information about the Tutor mailing list