Ghostscript'i Windows 10'a İçe Aktarma
ghostscript
Python'a aktarmaya çalışıyorum
yazdığımda import ghostscript
aşağıdaki hata mesajını alıyorum:
Traceback (en son çağrı): Dosya "<pyshell # 0>", satır 1, içe aktarma ghostscript Dosyasında "C: \ Users ... \ AppData \ Local \ Programs \ Python \ Python38-32 \ lib \ site-packages \ ghostscript_ init _.py ", satır 35, içinde. _gsprint'i gs Dosyası olarak "C: \ Users ... \ AppData \ Local \ Programs \ Python \ Python38-32 \ lib \ site-packages \ ghostscript_gsprint.py", satır 505, RuntimeError ('Ghostscript DLL bulunamıyor kayıt defterinde ') RuntimeError: Ghostscript DLL kayıt defterinde bulunamıyor
Windows 10 kullanıyorum.
Python 3.8.3, 32-bit kullandığımı doğruladım.
Bu konuyu buldum: Windows 8'de Ghostscript'i Python'a İçe Aktarmak , ancak çok yardımcı olmadı.
Baska öneri?
Ghostscript 32-bit veya 64-bit sürümünü kullanıp kullanmadığımı nasıl anlayacağımdan emin değilim.
Düzenleme # 1:
Yaparak Ghostscript'i kurdum python -m pip install ghostscript
Yanıtlar
Belgelere göre , ghostscript
PyPi paketi mevcut bir Ghostscript yüklemesini gerektirir:
python-ghostscript gerektirir
- Python 2.7 veya üzeri (Python 2.7, 3.4, 3.6 ve 3.6 ile test edilmiştir)
- kurulum için kurulum araçları (aşağıya bakın)
- Ghostscript Sürüm 8.x veya üzeri (9.x ile test edilmiştir)
Windows için Ghostscript'i buradan indirebilirsiniz .