How to Install Python to Run Aspose.Cells for Python via Java

This tutorial provides detailed steps on how to install python to run Aspose.Cells for python via java. It assumes that you have installed Docker on your system and guides you to install all the necessary software required to run Aspose-Cells code in Python. You will install Python during these steps and create a new XLSX file to verify the established environment.

Steps to Install Python to Run Aspose.Cells for Python via Java

  1. Using docker command pull the latest image of Ubuntu
  2. Run the Ubuntu image using the docker command
  3. Install Sudo command
  4. Install Java
  5. Install Python
  6. Install Pip command
  7. Install Aspose-Cells and JPype1
  8. Write and run the Aspose-Cells code for Python to create a workbook

Note that these steps assume that you are using Docker to test the complete environment however if you do not want to use Docker, ignore the first two steps and run the rest of the commands in the terminal or command prompt in your Linux environment. You need to install Python and Pip3 to install Aspose-Cells and JPype1 for running the sample code given at the end of the following script.

Script to Install Python to Run Aspose.Cells for Python via Java

There is no need to follow or run all the steps as if you have an Ubuntu image or have Ubuntu installed in your environment then leave the first two steps. If the Sudo command is installed in your environment leave it up to step 3. If Java is also installed, leave up to step 4 and you may just install Python and follow the rest of the steps.

As an alternate, you may paste the following content in the Dockerfile.

Build the image using the following command while moving the control to the folder where Dockerfile is placed:

docker build -t cells-python-image .

Run the image

docker run -it cells-python-image

In the end, a sample code is given to test the installation. You may save this code in the sample.py file after completing the tasks up to step 7 and then run the command given under step 8.

 English