Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7034199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:09:25+00:00 2026-05-28T01:09:25+00:00

I have Python code split into a web frontend and consumer backend. The backend

  • 0

I have Python code split into a web frontend and consumer backend. The backend has to run under Jython for interoperability with some Java libraries, but we want to run the webserver in cpython/mod_wsgi because of memory problems we’ve had running it in Jython through Jetty.

We use virtualenv for development, and I’ve currently got two virtualenv directories, one for cpython and one for jython. My question is whether both interpreters can happily coexist in one virtualenv (primarily to save having to update installed libraries twice, but also from curiosity). I’ve initialized the same environment with both interpreters:

virtualenv -p python environ
virtualenv -p jython environ

I can run both interpreters, and I can symlink environ/Lib/site-packages and environ/lib/python/site-packages so that they’re both looking at the same place. As long as there are no libraries relying on C extensions/optimizations I can’t see why they wouldn’t work in both interpreters. Anyone disagree or have any further things to look out for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:09:25+00:00Added an answer on May 28, 2026 at 1:09 am

    I don’t see why the two shouldn’t be able to coexist — they use completely different infrastructure, sharing only .py files. Jython is a java program, Python is C; Jython compiles to $class files, Python to .pyc; etc etc.

    The only thing to look out for (apart from avoiding C-based modules in Jython as you say) is setting PYTHONPATH and JYTHONPATH to the same value (Jython doesn’t use PYTHONPATH).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some Python code that works correctly when I use python.exe to run
I have some old python code that uses the pywin32 extensions. Starting out with
I have the following Python code: cursor.execute("INSERT INTO table VALUES var1, var2, var3,") where
I have created some python code which creates an object in a loop, and
I have some really nice Python code to do what I need to do.
I currently have some code in Python where I have entered the values from
I have got some code to pass in a variable into a script from
If I have Python code class A(): pass class B(): pass class C(A, B):
I have the following Python code: import xml.dom.minidom import xml.parsers.expat try: domTree = ml.dom.minidom.parse(myXMLFileName)
I have been writing Python code for only a couple of weeks, so I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.