Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells for Python via .NET is a platform‑independent API and can be used on any platform (Windows, Linux, and macOS) where Python is installed.
You can easily use Aspose.Cells for Python via .NET from PyPI with the following command.
$ pip install aspose-cells-python
You can easily use Aspose.Cells for Python via .NET from PyPI with the following command.
$ pip install aspose-cells-python
For Ubuntu/Debian: apt-get install libgdiplus
For CentOS/RHEL/Fedora: yum install libgdiplus You can easily use Aspose.Cells for Python via .NET from PyPI with the following command.
$ pip install aspose-cells-python
Note: If your Python version is 3.7 (take Python 3.7 as an example), after installing aspose-cells-python, you may encounter errors such as
'/usr/local/lib/libpython3.7m.dylib' (no such file) or '/usr/lib/libpython3.7m.dylib' (no such file).
In such a situation, please add the following commands to your ~/.bash_profile (first locate where libpython3.7m.dylib resides, e.g., /Library/Frameworks/Python.framework/Versions/3.7/lib):
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/Library/Frameworks/Python.framework/Versions/3.7/lib"
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Frameworks/Python.framework/Versions/3.7/lib/"
Note: Due to our reliance on the SkiaSharp graphics library, if you encounter the following error:
System.DllNotFoundException: Unable to load shared library ‘libSkiaSharp’ or one of its dependencies.
please install SkiaSharp.
brew install nuget
nuget install SkiaSharp.NativeAssets.macOS -Version 2.88.6
After installation, run the following command:
cp ./SkiaSharp.NativeAssets.macOS.2.88.6/runtimes/osx/native/libSkiaSharp.dylib /usr/local/lib/.
Of course, if you want a simpler approach, you can also download libSkiaSharp.dylib and then copy it to the /usr/local/lib directory.
⚠️ Note:
In some cases, after installing a new version of aspose-cells-python, users may encounter an error like the following:
While initializing the host for the ‘WrpNs_Aspose.WrpNs_Cells.WrpCs_Workbook_xxxxxx (Assembly=WrpInterop.Aspose.Cells)’ type, an error occurred – Method ‘call_000_xxxxxx’ not found
This indicates that the previous version was not completely uninstalled, leading to a conflict between the newly installed version and the old one.
You can resolve this issue by following the steps below:
# Set up virtual environment
python -m venv .venv
.\.venv\Scripts\activate
# Install aspose-cells-python
pip install aspose-cells-python
Then run your program.
pip uninstall aspose-cells-python
Make sure the uninstallation is successful. If any errors occur during uninstallation, try running the command multiple times.
Alternatively, locate your site‑packages directory, typically something like:
\Python3x\Lib\site-packages
Then manually delete the following directories (if they exist):
aspose
aspose_cells*
After that, reinstall the package:
pip install aspose-cells-python
CreatingHelloWorldFile.py and run python CreatingHelloWorldFile.py at the command prompt.Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.