× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



In a production environment, you run in the same sort of virtual environment.
They aren't "virtual machines". A Python virt env is just a directory structure and some environment variables.
The create is handled by: python -m env myvirtenv (usually followed by the switch --system-site-packages ... always thus followed on IBM i because you need the system packages because many important modules are hard to build and come from the global environment where they were installed by you via yum.)
The activation of that environment is via : source myvirtenv/bin/activate
You can deactivate thereafter via the command (which comes from the virt env): deactivate
Richard Schoen's QSHOnI ILE code constitutes support for running PASE programs from CL/RPG, including a Python runner that accepts the location of the virt env as an argument.
There are (basically) 3 envs: global, user, virtual
Global is for the system modules and the ones you install via yum.
Virtual is for development and production
The user environment (pip install --user somemodule) is for utilities like qrcode and spyder and black that you use at the command line.
You use virtual envs to isolate your project from other projects with possibly conflicting modules, and to avoid polluting the global environment.

________________________________
From: OpenSource <opensource-bounces@xxxxxxxxxxxxxxxxxx> on behalf of stefan@xxxxxxxxxx <stefan@xxxxxxxxxx>
Sent: Saturday, March 22, 2025 12:00
To: 'IBMi Open Source Roundtable' <opensource@xxxxxxxxxxxxxxxxxx>
Subject: Re: [IBMiOSS] Do worry - Python newbie calling

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Thanks Jack, will try to read up on virtual environments.
Need to find a solution that works in a production environment.



Jack Woehr
Independent Consulting Programmer

303-847-8442

jack.woehr@xxxxxxxxxxx

www.procern.com

Stay Connected!

Not Just MSP, We Also MSSP.

 NON-DISCLOSURE NOTICE: This communication including any and all attachments is for the intended recipient(s) only and may contain confidential and privileged information. If you are not the intended recipient of this communication, any disclosure, copying further distribution or use of this communication is prohibited. If you received this communication in error, please contact the sender and delete/destroy all copies of this communication immediately.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.