לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Does Firefox 34.0 Ubuntu canonical 1.0 process python3 files?

more options

I have a simple python .py file in the server's html directory, but accessing it via localhost gets me only -the window asking what I want Firefox to do with the file.

I have a simple python .py file in the server's html directory, but accessing it via localhost gets me only -the window asking what I want Firefox to do with the file.

כל התגובות (3)

more options

Does your localhost have Python installed? I think that would help in making sure your localhost and your "real" server will deliver the same results.

To answer your original question, as far as I know, Firefox does not have a built-in interpreter for Python the way it does for JavaScript.

more options

Python is installed on my localhost. I can use it in a terminal window, but I think you provided the explanation as to why it does not work when I call it in Firefox.

more options

You might just need to add something to your localhost webserver's config files to point it to the python interpreter. But I have no idea how you do it.