Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc,comp.lang.python Subject: Re: Defeat Python "Virtual Environment" in Fedora ? Date: 10 Mar 2026 19:36:23 GMT Lines: 35 Message-ID: References: <10olgca$2vj8v$1@dont-email.me> <10opbd6$aupd$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net pZqv2NT2jsgnV0284BoOfwxtZcVfJPViIZ5tFAn2H4heXr/fmh Cancel-Lock: sha1:eLukC85gGSj6i282Y2/L3YARrus= sha256:9rWiTg257kRn5hrUa4BoYcz6kqnHbemM4O6d9MNegFU= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:82842 comp.lang.python:197708 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'