1
$\begingroup$
import bpy
print ("something")

When I run this script nothing happens, nothing appears.

The only answers to where it prints I find are from 6 years ago.

With 2.91 It's not in the Python Console output in the Scripting tab, so where does it display its print command?

Using Windows.

$\endgroup$
2

1 Answer 1

3
$\begingroup$

Things have not changed from 6 years ago. The console is not a window that is part of the blender's user interface, but one that belongs to the operating system.

In widows

You can enable the system console from blender using the top menu's Window > Toggle System Console.

enter image description here

That will open a totally different window, with the console and all messages from python will appear there.

enter image description here


In Linux

There is no option to open a terminal window from within blender, the terminal window must be opened before and the blender program should be run from terminal.

enter image description here

On Mint/Cinnamon, the app launcher can be set to Launch in terminal. That way the terminal window is always available.

enter image description here

$\endgroup$
2
  • $\begingroup$ what about on macOS?? macOS there also no system console option in window. And it can not running from system terminal. $\endgroup$ Feb 26, 2022 at 4:16
  • $\begingroup$ For macOS, open the terminal and navigate to the Applications folder (where Blender.app is located). Then issue this command to open Blender from the terminal: ./Blender.app/Content/MacOS/blender $\endgroup$
    – jt_uk
    Mar 12 at 20:47

Not the answer you're looking for? Browse other questions tagged .