簡體   English   中英

如何在python 3.7.x下的anaconda中安裝fpdf?

[英]How to install fpdf in anaconda under python 3.7.x?

我有一些統計結果想導出為PDF格式,我搜索了這個網站,似乎使用FPDF是一個不錯的選擇。

我在 Windows 10 下使用 Anaconda,並在 Anaconda Prompt 中輸入了Anaconda 雲中所示的代碼:

conda install -c foxbms fpdf

但是出現了一個錯誤,它說:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - fpdf -> python[version='>=3.6,<3.7.0a0']

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with each other:



Package wincertstore conflicts for:
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip -> setuptools -> wincertstore[version='>=0.2']
python=3.7 -> pip -> setuptools -> wincertstore[version='>=0.2']
Package certifi conflicts for:
python=3.7 -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26|>=2017.4.17']
Package wheel conflicts for:
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip -> wheel
python=3.7 -> pip -> wheel
Package setuptools conflicts for:
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip -> setuptools
python=3.7 -> pip -> setuptools
Package pip conflicts for:
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip
python=3.7 -> pip
Package ca-certificates conflicts for:
python=3.7 -> openssl[version='>=1.1.1a,<1.1.2a'] -> ca-certificates
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip -> requests -> urllib3[version='>=1.21.1,<1.24'] -> cryptography[version='>=1.3.4'] -> openssl[version='>=1.1.1a,<1.1.2a'] -> ca-certificates
Package msgpack-python conflicts for:
fpdf -> python[version='>=3.6,<3.7.0a0'] -> pip -> cachecontrol -> msgpack-python

是不是因為我的 3.7.4 python 版本高於要求的 3.6?

如果他們有任何安裝 FPDF 的解決方案?

謝謝。 如果這是一個愚蠢的問題,我深表歉意。

我使用的是 Python 版本Python 3.7.1 ,我在 Anaconda 命令提示符中輸入了這個命令來安裝FPDF

pip3 install fpdf

嗨,您可以為此使用 pip,只需鍵入

pip install fpdf2

fpdf2fpdf的一個分支,支持 Python 3.6+ 並且仍在開發中。

暫無
暫無

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

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