安装双绞线时发生错误

问题描述 投票:0回答:1

我正在尝试使用pipenv install scrapy安装scrapy,但涉及到安装依赖项。失败。

Installing scrapy…
Adding scrapy to Pipfile's [packages]…
Installation Succeeded
Installing dependencies from Pipfile.lock (ad2c1d)…
  ================================ 25/25 - 00:00:06
An error occurred while installing twisted==19.10.0 ; python_version >= '3.5'

我正在虚拟环境中运行python 3.8。以Pycharm作为我的IDE。

我本以为也许我使用的是较旧版本的Python,这会引起冲突。

我的Pipfile:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
scrapy = "*"

[requires]
python_version = "3.8"
python scrapy twisted
1个回答
0
投票

通过pip安装scrapy非常棘手,因为它的依赖项twistedlxml需要C ++编译器。

只有一种可靠且官方推荐(docs)的方式将其安装在Windows上-使用anaconda发行版(而非pip

© www.soinside.com 2019 - 2024. All rights reserved.