I cannot add Python mode!

Processing 4 has no “Add mode” option in the drop down menu as described by dozens of references in the Web! So I am stuck without being able to use Python scripts in Processing IDE!

Can anyone tell me how to install Python mode/libraries in Processing 4?

Thank you.


Search the forum for More details

  1. There’s no “Sketchbook mode” directory. There’s only a Sketchbook folder and this is the default C:\Users{username}\AppData\Roaming\Processing folder in File->Preferences.
  2. I cannot place the PythonMode directory that I just downloaded in the Sketchbook folder as you said, because Processing 4 refuses to change Sketchbook folder to the one I instructed it to in ‘preferences.txt’, as I mentioned in my first launched topic.
  3. However, there is a “modes” directory under the main Processing directory (\Processing\modes) containing only Java, which also appears as the only installed mode in the menu at the right of the tools bar. So, I placed the PythonMode directory also in there. Logically, this should work, right? Well, guess what. It doesn’t! I can’t see Python either in the modes drop-down list or in “Manage modes” appearing in the same list. (BTW, there’s no “Add mode” options as all the references that I read mention.

Did you install the Python mode? Here’s what I see on my system when I click on the mode box in the upper right hand corner of the editor:

I just now noticed that the Modes tab is empty on my system too. No wonder you can’t install it! Perhaps it got lost on the last update. I’m using version 4.1.1.

I just switched to a Windows 11 system and was able to install the Python mode (now shows up in menu) using the technique described in @jafal 's post. I extracted the .zip file (in Downloads folder) into c:\Users\myName\Documents\Processing\modes and it worked.

Try extracting the pythonMode .zip file into the Processing/modes folder instead of directly placing it in there.


Issue and solution discussed here:

Processing 4.1.2 is now available:


That’s pretty tricky; have to open libraries tab first then switch to modes tab.

I strongly recommend Processing 3.5.4 for Python Mode. There are some compatibility issues to resolve with Processing 4.x


Re “Did you install the Python mode?”:
But this is exactly I’m trying to figure out. How to add/install Python mode.

Re “I extracted the .zip file (in Downloads folder) into c:\Users\myName\Documents\Processing\modes and it worked.”:
I would try that too, but I don’t want to use drive C: (which is the default one) for such a task. I tried to change the Sketchbook folder to another drive --with the instructions @jafal gave me-- but Processing 4 refuses to do that or ignores it.
I placed instead under "\Processing\modes’ where Java is also placed. But Processing 4 ignores that too.

In another thread, which refers to this issue as a bug, someone suggested to download version 4.1.2.
Well, I downloaded version 4.1.1 only yesterday! And it was in the “Stable” versions list!
Do they release versions everyday?
Or was I just extremely unlucky? :upside_down_face:

@tabreturn you are a life saver! Thanks a mil!
Both my issues solved immediately and in a way that is expected with version 3.5.4!

  1. Sketchbook folder can be changed on the spot
  2. Python mode can be installed on the spot, using “Add mode” in the above changed folder

What a case! Downgrading to an earlier main version solving problems!

Thanks a lot to everyone who contributed! :pray:

1 Like

Processing version 4.1.2 was released on Tuesday. You can now find it on the Download page.

Hello this is Gulshan Negi
Well, to install Python mode/libraries in Processing 4, you will need to follow these steps:

  1. Download and install the latest version of Processing 4 from the Processing website.
  2. Open Processing 4 and go to the “Sketch” menu, then select “Import Library” and then “Add Library”.
  3. In the “Contribution Manager” window, you will find a list of available libraries.
  4. Type “Python” in the search bar, and it will show you the available Python libraries for Processing 4.
  5. Select the library you want to install and click on the “Install” button.
  6. The library will be downloaded and installed. After installation, you’ll be able to use the library in your sketches.