Last active
March 4, 2022 17:11
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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