Question

I got this simple problem and I can't find the answer anywhere, I'm wasting a lot of time!

I did a Python programm on Linux (which works OK), but when I try to run it on Windows, there are too problems with libs...

I have installed the libs I need (dateutil, lxml, xmlrpclib...) in C:\Python34\Lib\site-packages. But then, they don't work as they do on Linux. For example:

from dateutil.tz import tzlocal

Gives me next error:

File "C:\Python34\lib\site-packages\dateutil\tz.py", line 9, in module from six import string_types, PY3 ImportError: No module named 'six'

That is, they are not finding the other modules... why???

Was it helpful?

OTHER TIPS

It looks like you're using Python 3.4 which comes with pip. pip is a tool for installing packages and any dependencies they might have (like the srting_types module from your error message). I'd suggest learning how to use it because it resolves most of the packaging problems with you needing to moving things around yourself. See an answer from a different question to learn more about pip.

There are some packages that need to be compiled. This can be difficult on Windows 7 if you don't have the proper toolchain set up to compile packages. I'd recommend Christoph Gohlke's wonderful collection of installable packages for Windows. You just need to make sure to grab the right version. Since 3.4 is still relatively new, some packages may not be available, so be warned.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top