pip freeze > requirements.txt
Showing posts with label environment. Show all posts
Showing posts with label environment. Show all posts
10 May 2024
How to output or create the requirements.txt file which is a list of all the needed software?
https://stackoverflow.com/questions/29715249/is-there-any-way-to-output-requirements-txt-automatically
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
01 September 2023
27 June 2021
On Ubuntu, Creating Virtual Environments
On Ubuntu, creating Virtual Environments
https://packaging.python.org/tutorials/installing-packages/#creating-and-using-virtual-environments
python3 -m venv <DIR>
source <DIR>/bin/activate
'<DIR>' is actually your site name, e.g. 'mysite'.
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
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.
Subscribe to:
Posts (Atom)