簡體   English   中英

在 windows 10 上安裝 weasyprint 的問題

[英]Problems with weasyprint installation on windows 10

我正在嘗試安裝 weasyprint,我的設置是:

  • 操作系統:Windows 10 Pro 64位
  • Python 3.8.2 32 位

我按照官方安裝指南https://weasyprint.readthedocs.io/en/latest/install.html#windows煞費苦心:

  • 第 1 步:安裝 Python - 檢查

  • 第 2 步:更新 pip 和 setuptools 包 - 檢查

  • 第 3 步:安裝 WeasyPrint - 檢查

  • 第 4 步:安裝 GTK+ 庫 - 檢查

    注意:我安裝了 GTK+ 的 32 位版本,因為我的PATH是 32 位(通過C:\msys64\mingw32\bin用於 64 位 Windows)並在高級系統設置 > 環境變量 > 系統變量 >小路

  • 第 5 步:試運行 WeasyPrint

    Executing the command python -m weasyprint http://weasyprint.org weasyprint.pdf i get the answer C:/msys64/mingw32/bin/python.exe: No module named weasyprint

    Also when I execute similar commands like python -m pip install WeasyPrint i get the answer C:/msys64/mingw32/bin/python.exe: No module named pip

我想我如何將C:\msys64\mingw32\bin添加到我的路徑變量中似乎存在問題,但我無法找出這里到底出了什么問題。

您需要安裝 64 位版本的 python。 將您所擁有的和 go 卸載到 window 商店並安裝 3.8 python 64 位。 並驗證通過終端並鍵入 python 和 python 控制台說 64 位不是 32。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM