Install redis wsl3/28/2024 ![]() Open the project folder in VS Code via explorer or by running code.Create the requirements file - pip3 freeze > requirements.txt.Install the celery - redis and sqlalchemy libraries - pip3 install celery sqlalchemy.Activate the virtual environment - source venv/bin/activate.Create the virtual environment in the project folder - python3 -m venv venv. ![]() In the current example, we will open a WSL window in cmder to run the commands. The same commands can be run in Ubuntu or other Linux distros. For this demo, we are using the cmder console application. Now that we have Python installed with WSL, we will create a virtual environment and install the required dependencies. If not, one can refer to the below resources before proceeding further. This post assumes that the reader already has WSL setup and has installed Python and pip on WSL. Finally, we will store the results of the tasks executed by Celery in a SQLite database. We will also be using the Remote-WSL extension in VS Code to develop our Python application in a Linux environment. In this post, we will see how to install and run Celery using Windows Subsystem for Linux (WSL) on Windows 10. ![]() It requires a messaging queue (also known as a broker) to send and receive messages. Celery is an asynchronous task queue that is fairly easy to integrate with a Python application. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |