Comment by 🕹ī¸ skyjake

=> Re: "Python venv and cgi" | In: s/programming

So far I've not been using venvs with CGI, instead installing dependencies system-wide and making sure the right version of the Python interpreter is used for running the CGI script.

If you do use venv, I believe you can launch the CGI script using the Python interpreter in the venv's bin directory even if the venv isn't active.

=> 🕹ī¸ skyjake [sysop]

Jan 16 ¡ 3 days ago

2 Later Comments ↓

=> 🍀 gritty [OP] · Jan 16 at 17:10:

@skyjake ah okay. maybe i need to try another approach because pip and pipx both yell at me when installing a lib antenna requires. I think there's a flag to override it though, I'll try that.

=> 🕹ī¸ skyjake [...] ¡ Jan 16 at 17:23:

This is what I've been using with pip:

--break-system-packages     Allow pip to modify an EXTERNALLY-MANAGED Python
                            installation

Original Post

=> 🌒 s/programming

Python venv and cgi — How is everyone using python venv as a cgi script? is it unwise to put the env in the cgi dir? I assume you just create a wrapper to activate the env and run the script. I broke DSN with a server upgrade and now I'm forced into venvs. at least I think so

=> đŸ’Ŧ gritty ¡ 3 comments ¡ Jan 15 ¡ 4 days ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/skyjake/23933
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
49.093055 milliseconds
Gemini-to-HTML Time
0.617238 milliseconds

This content has been proxied by September (ba2dc).