Re: Defeat Python "Virtual Environment" in Fedora ?

rbowman <[email protected]> 10 Mar 2026 19:36:23 GMT
Newsgroups comp.os.linux.misc,comp.lang.python
Message-ID <[email protected]>
On Tue, 10 Mar 2026 13:03:49 -0400, c186282 wrote:


>    Can't figure out how to zap the VENV in order to provide the examples
>    you'd like
> 
>    Seems like, of late, it's entirely baked-in -
>    Python is the VENV and the VENV is Python.

Unless you've specifically created a venv, you're not in one. I have a 
script that scrapes the current conditions and forecasts from the NOAA 
site. It uses two imports.

import json
import requests

json is built in, requests is in the dist-packages. 

$ python3 -m site
sys.path = [
    '/',
    '/usr/lib/python313.zip',
    '/usr/lib/python3.13',
    '/usr/lib/python3.13/lib-dynload',
    '/usr/local/lib/python3.13/dist-packages',
    '/usr/local/lib/python3.13/dist-packages/opensky_api-1.3.0-
py3.13.egg',
    '/usr/lib/python3/dist-packages',
]

in this case  'ls /usr/lib/python3/dist-packages' will show you what is 
available. Distros install many as a default. Others can be added like

'sudo apt install python3-numpy'