For Debian and Ubuntu, the following command will ensure that the required dependencies are installed:
1.第一步先做这个,这个是在全局环境中执行的,是为了安装好cryptography的相关依赖
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
2.第二步在全局环境下运行下列命令
$ pip install cryptography
3.第三步在虚拟环境中执行下面代码,别忘了激活虚拟环境(source .......)
$ pip install scrapy
virtualenv 配置scrapy
最新推荐文章于 2024-09-17 13:30:28 发布