Showing posts with label Virtual. Show all posts
Showing posts with label Virtual. Show all posts

09 May 2024

How to create a virtual environment with preinstalled packages as in requirements.txt

https://stackoverflow.com/questions/41427500/creating-a-virtualenv-with-preinstalled-packages-as-in-requirements-txt

$ git clone <repo>

$ cd <repo>

$ sudo apt install python3-venv (if you don't already have virtualenv installed)

$ python3 -m venv venv/ to create your new environment (called 'venv/' here)

$ source venv/bin/activate to enter the virtual environment

$ pip install -r requirements.txt to install the requirements in the current environment

26 June 2021

On Windows, How to Install, Create and Activate a Python Virtual Environment (Project) for Django? mkvirtualenv is not recognized as an internal or external command, operable program or batch file

 (For Windows)

How to Install, Create and Activate a Python Virtual Environment (Project) for Django? 

mkvirtualenv is not recognized as an internal or external command, operable program or batch file


https://stackoverflow.com/questions/56778211/error-message-mkvirtualenv-is-not-recognized-as-an-internal-or-external-command


For Python 3.3 or newer, Commands for installing, creating and activate virtual environment has been changed.

You can install virtual environment using pip:

py -m pip install --user virtualenv

For creating new environment:

py -m venv myproject

To activate your virtual environment:

.\myproject\Scripts\activate

After activating virtual environment, You’ll see “(myproject)” next to the command prompt.

19 August 2015

Having an ISO file, how do you create a virtual CD drive?


https://www.howtogeek.com/howto/windows-vista/mount-an-iso-image-in-windows-vista/
How to Mount an ISO image in Windows 7, 8, and 10

Windows 8/10 - right-click the iso file, select 'mount'.

Windows 7 or before, download and install 'WinCDEmu'.
You can double click the iso file to mount it. Or you can right-click the iso file, and select 'select drive letter and mount'.


============================

Virtually mount and access ISO files as a virtual device.
If you don’t have a CD/DVD burner installed on your machine or you don’t have media available to you (a blank CD-R/DVD-R), you can “mount” the ISO file as a virtual drive. With this method, your machine will believe that the file is a real disk drive, and you will be able to read files from this “virtual disk.” This approach is advisable only for installation of applications (such as Office) or minor system upgrades. You will not be able to install an Operating System using this approach, because the virtual drive would disappear at some point during the installation.
There are several software options for the virtual drive approach. Though they have not been tested and are not supported by the VLSC team, customers report that Daemon Tools and Pismo File Mount offer such capability as well as Microsoft Virtual CD Control Tool.

Sherman: Daemon Tools works well.