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!

    • abhinav singh

      Good to know that you liked it

  • bintao li

    Hi Abhinav,
    Could I run pmc3 within Jupyter Notebook at CloudxLab after my installation of ‘pip install git+https://github.com/pymc-devs/pymc3’? thanks.

    Regards,
    Bintao Li

    • Abhinav Singh

      Hi @bintaoli:disqus,

      I’ve installed pymc3 on CloudxLab.

      Can you please check it once.

      Thanks

      Regards,
      Abhinav

      • bintao li

        Hi Abhinav,

        it works now. Thanks.

        Regards,
        Bintao Li