Next.js Discord

Discord Forum

Nextjs Flask virtual environment

Answered
Yellow Crazy Ant posted this in #help-forum
Open in Discord
Yellow Crazy AntOP
Hello everyone,
i'm trying to develop a custom project with next-js and flask
and with flask i have other dependencies which i need to install within a virtual environment...

so if i activate the environemnt from command line, or terminal it activates and runs properly and shows packages installed... but when i try to run the FLASK_DEBUG=1 or try to sctivate virtual environment from the scripts in package.json. it fails...

so reason behind this is that its not accessing the flask installed from the environemnt, instead its picking flask from global environemnt...

so if i have multiple packages of python which i require to install in vir-environment, how can i activate this environment from within the scripts part of package.json...

i have tried everything no luck yet, please let me know if you guys find anything or if i'm missing anything,

thankyou so much
Answered by Yellow Crazy Ant
okay sorry, i found a solution to this and uploaded answer to stackoverflow
View full answer

1 Reply