How to boot raspberry pie and automatically run python scripts in virtual environment

I installed a virtual machine on python. There is a script
usually:

source ~/env/bin/activate    ()
python text.py  

but it"s troublesome every time. I want to write a shell or python, but I can"t use source in shell and python. According to what I said on the Internet, I changed it to dash ~ env/bin/activate, but I still can"t
ask for advice

May.25,2022

in general, you can directly call the python file in the virtual environment, such as

~/env/bin/python text.py
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e450a7-43a7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e450a7-43a7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?