I teach Python in a small org. where internet is disabled in the lab-systems due to some mis-usage/security issues. So pip installations OR installing any extension for any IDE is not possible.
I have copied (using USB drive) & installed python v3.13, VS-Code.I face problems executing Python scripts using VS-Code.
NOTE: I do not want to use IDLE.
I teach Python in a small org. where internet is disabled in the lab-systems due to some mis-usage/security issues. So pip installations OR installing any extension for any IDE is not possible.
I have copied (using USB drive) & installed python v3.13, VS-Code.I face problems executing Python scripts using VS-Code.
NOTE: I do not want to use IDLE.
You don't want to use Idle, and you don't want to use VSCode.
What do you want to use?
For short simple scripts, I use the command prompt as an Integrated Design Environment, and
copy con myprog.py
It happened to me, though at that time VSCode wasn't really a thing yet.
For Python, I used Anaconda. It come packed with so much packages that only for very specific edge cases you would need to bundle extra packages.
Concerning VSCode, you can prepare what you need, and download the list of extensions to install on the target machines from a USB Key. Not ideal, but for starting with Python, not much is needed.
You could also select another IDE, I agree that PyCharm is a good start and many of my colleagues started with this program, our formation session use also this IDE to teach the basics of Python. Or go lighter. A Notepad++ can be enough for starters.
pip install /path/to/package.whl
or even put a bunch of them in a requirements.txt file. Depending on the operating system, you could copy .deb or .rpm equivalents of your modules and install on the OS. Back in the day, I setup my own pypi server in the lab and manually copied the stuff I wanted from pypi.org. I think that should still work, but I don't remember the details off hand. – tdelaney Commented Jan 30 at 2:20