Frappe Import in Normal Python Console

I want to import frappe in normal python console . How i can import ? I want to do it without using bench console.

@akash_jadav,

You will need to use the python from env environment of your frappe-bench directory in order to import the frappe.

try following commands from frappe-bench directory

source env/bin/activate then open python console using python

but better way to use the python console for frappe use the bench console instead

Thanks,
Makarand

Thanks @makarand_b :grin:

How would one import a local python file into console? %load will run, but I’m not sure where to start with the import path or where to drop the file.

I should have asked this question a very long time ago.