How do I compile my Python program to a .jar with Jython?

What is the proper way to compiling on Windows and Python 2/3 with pip/easy_install?

  • So far I know that: VC2008 is recommended for Python 2.x VC2010 is recommended for Python 3.x Windows SDK is recommended/required for both. gcc/mingw gave me more problems than any of the above with libraries like bcrypt, cryptcaular, C extensions and more. For me I removed this from PATH: C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\ And that required a reboot/logoff for the error to go away. It caused a msvcr10.dll C runtime error. I still occassionally have compile errors. How did you solve it when you test Python code on a Windows workstation? I can install binaries from: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And that works almost 100% of the time, but pip/easy_install is a great convenience.

  • Answer:

    easy_install should b...You must be signed in to read this answer.Connected to GoogleConnected to FacebookBy continuing you indicate that you have read and agree to the .  Loading account...Complete Your ProfileFull NameChecking...EmailChecking...PasswordChecking...By creating an account you indicate that you have read and agree to the .

Thomas Kluyver at Quora Visit the source

Was this solution helpful to you?

Other answers

I finally nailed this one completely, although it wasn't without hard trial and error and uninstalling/reinstalling lots of software. The "Hard-to-come-by" (tm) Easy Solution Python 2.7VC2008 (Visual C++ 2008) Download x86/x64: (http://www.microsoft.com/en-us/download/details.aspx?id=29 or http://www.microsoft.com/en-us/download/details.aspx?id=15336) Windows SDK 7.1 Framework 3.5 Download: http://www.microsoft.com/en-us/download/details.aspx?id=3138 Python 3.3VC2010 (Visual C++ 2010) from ISO, not express (Express doesn't include 64-bit compilers) Download (only x86 compilers in Express): http://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express Windows SDK 7.1 Framework 4 Download: http://www.microsoft.com/en-us/download/details.aspx?id=8279 And now it works completely, and I never had one pip/easy_install error out on me since I got this right with above instructions. Remember that if you want x64 compilers, you need "Standard"-edition at least of Visual Studio 2010. Express will not include x64 compilers. Python 3.x + 64bit actually works quite well on Windows and I haven't had any troubles with above in any way ... I used Python 2to3 to repair some libs in the PyPi library to work with Python 3, but that was it. (and completely unrelated to the above symptom).

Christoffer Aasted

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.