Skip to content

Instantly share code, notes, and snippets.

How to Install Python for Java to Run Aspose.Cells. More details about this script are available here: https://kb.aspose.com/total/python/how-to-install-python-to-run-aspose-cells-for-python-via-java/
1. Pull Latest Ubuntu Image
docker pull ubuntu
2. Run Ubuntu Image Using Docker Command
docker run -it ubuntu
3. Install Sudo Command
apt update
apt upgrade
apt install sudo
sudo apt update
4. Install Java
sudo apt install default-jre
5. Install Python
sudo apt update
sudo apt upgrade
sudo apt install -y python3
6. Install Pip Command
sudo apt update
sudo apt install python3-pip
7. Install Aspose-Cells
pip install aspose-cells
pip install JPype1
8. Write Sample Program And Save It As Sample.Py And Run Program
python3 sample.py
SAMPLE CODE TO BE WRITTEN IN Sample.Py
import jpype
import asposecells
jpype.startJVM()
from asposecells.api import Workbook
# Instantiate a blank XLSX workbook
wb = Workbook()
# Save Excel file to check the environment
wb.save("new-workbook.xlsx")
jpype.shutdownJVM()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment