最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xml - can't install pillow neither packtools in Python 2.7.17 - Stack Overflow

programmeradmin0浏览0评论

I mark articles for SciELO and I need to use Python 2.7.X to work with it, but when i try to install pillow, packtools and lxml the cmd points to "Could not find a version that satisfies the requirement pillow (from versions: )".

Here's the link in SciELO to follow the steps:

  1. I've install Python 2.7.17, add it to PATH
  2. Get XPM in 2.1. User: produtos-scielo 2.2. Password: produtos@scielo
  3. Executed install_requirements.bat

At the third step I get these erros that I printed

I mark articles for SciELO and I need to use Python 2.7.X to work with it, but when i try to install pillow, packtools and lxml the cmd points to "Could not find a version that satisfies the requirement pillow (from versions: )".

Here's the link in SciELO to follow the steps: https://documentacao.scielo./books/scielo-pc-programs/page/pre-requisitos

  1. I've install Python 2.7.17, add it to PATH
  2. Get XPM in ftp://ftp.scielo.br 2.1. User: produtos-scielo 2.2. Password: produtos@scielo
  3. Executed install_requirements.bat

At the third step I get these erros that I printed

Share Improve this question asked Feb 3 at 19:01 Saraiva_NSaraiva_N 111 silver badge2 bronze badges 4
  • 1 what happens when you run python -m pip install pillow==6.2.2? – dev_light Commented Feb 3 at 19:04
  • Also edit your question and add the version you're trying to install and the commands you ran... I already know it from Staging Ground but other users need to know too. – dev_light Commented Feb 3 at 19:06
  • 1 @dev_light They did have that information in the comments to this when it was on staging grounds but I agree it should be added here to the question – JonSG Commented Feb 3 at 19:07
  • 1 If you look at Pillows pypi page, it looks like it no longer supports Python 2.7, which isn't surprising, since Python 2 was sunsetted on January 1, 2020. Most major packages will no longer support it. Perhaps you can find a very old version somewhere, maybe using conda and the conda-fe channel. But frankly, you shouldn't expect to be able to do much with Python 2 – juanpa.arrivillaga Commented Feb 3 at 20:39
Add a comment  | 

2 Answers 2

Reset to default 2

You report that modern packaging infrastructure does not find any compatibile version combinations. That’s hardly surprising. Python 2.7 was supported in 2019, but it has not been supported for a very very long time. Recommend you switch to interpreter 3.9 or higher.

Pushing on a rope will not always prove effective. If the libraries you depend on are not compatible with python3, then either encourage the upstream developers to update their library, or you may choose to adopt different library dependencies to accomplish your business goals.

Ensure pip is at the correct version i.e. pip==9.0.3. Install specific versions of the libraries compatible with Python 2.7. Then install pillow as:

python -m pip install pillow packtools lxml --use-deprecated=legacy-resolver

发布评论

评论列表(0)

  1. 暂无评论