I'm trying to create a standalone executable file from python script using py2exe (following instructions at link ). When I run the setup.py from cmd, it shows an error saying "no module named urllib", although urllib is a builtin module. Please help out.
Asked
Active
Viewed 139 times
2
-
http://stackoverflow.com/questions/2532321/python-importerror-no-module-named-urllibDo you get the error when you run the script too> See if this helps. – Jayanth Koushik Feb 25 '14 at 11:14
-
I was scanning the web and found [this](http://www.logix4u.net/component/content/article/27-tutorials/44-how-to-create-windows-executable-exe-from-python-script) – Zuko Feb 25 '14 at 11:22
-
1I found pyinstaller to be much easier to use. Without specifying anything it includes all dependencies. – bgusach Feb 25 '14 at 11:35
-
@JayanthKoushik: No it works perfectly in eclipse – raul Feb 25 '14 at 11:38
-
Can you check if you are able to import urllib from a cmd window. – Jayanth Koushik Feb 25 '14 at 11:40
-
How do you do that? (Sorry, i'm a newbie) – raul Feb 25 '14 at 11:42