How to install Python packages on CloudxLab?

In this blog post, we will learn how to install Python packages on CloudxLab.

Step 1-

Create the virtual environment for your project. A virtual environment is a tool to keep the dependencies required by different projects in separate places, by creating virtual Python environments for them. Login to CloudxLab web console and create a virtual environment for your project.

Step 2-

To begin using the virtual environment, it needs to be activated:

The name of the current virtual environment will now appear on the left of the prompt (e.g. (venv)Your-Computer:your_project$) to let you know that it’s active. From now on, any package that you install using pip will be placed in the venv folder

Virtual Environment
Virtual Environment

Step 3- 

Install packages as usual

Step 4-

If you are done working in the virtual environment you can deactivate it:

Next time when you want to use the same virtual environment, go to your project directory and activate the virtual environment

  • kaylawei

    This tutorial is very helpful!