Python 3.13 cannot install Aspose.PDF in MacOS

I cannot install aspose pdf for python on Mac OS.

ERROR: Could not find a version that satisfies the requirement aspose-pdf (from versions: none)
ERROR: No matching distribution found for aspose-pdf

Please suggest alternative to install in MAcOS

@pratik122354

Cause

The error message you’re encountering indicates that the package aspose-pdf is not available for your version of Python (3.13) on macOS. This can happen if the package has not been published for that specific version or if there are compatibility issues.

Solution

To install Aspose.PDF for Python on macOS, you can use the Aspose.PDF for Python via Java package instead. This package allows you to utilize Aspose.PDF functionalities through a Java bridge, which is compatible with Python.

Code

Here’s how you can install it:

  1. First, ensure you have Java Development Kit (JDK) installed (version 1.8 or higher).

  2. Install JPype, which allows Python to interface with Java:

    pip install JPype1
    
  3. Then, install the Aspose.PDF for Python via Java package:

    pip install aspose-pdf-for-python-via-java
    
  4. After installation, you can use it in your Python scripts like this:

    import jpype
    import jpype.imports
    from jpype.types import *
    
    # Start the JVM
    jpype.startJVM()
    
    # Import Aspose.PDF classes
    from com.aspose.pdf import Document
    
    # Create a PDF document
    pdf = Document()
    pdf.getPages().add()
    pdf.save("output.pdf")
    

Next Steps

  1. Follow the installation steps above to set up the Aspose.PDF for Python via Java.
  2. Test the provided code snippet to ensure everything is working correctly.
  3. If you encounter any issues, please reach out for further assistance.

I hope this solution resolves your issue! Let me know if you need any more help.

any update on this?

@pratik122354

We are actively preparing for the release of the MacOS version. The issue has been logged under ticket ID PDFPYTHON-177 in our issue management system. We will notify you as soon as support becomes available, which is currently expected in the third quarter of 2025.