在NanoPi上安装Scrapy框架

萌新 · 更新于
Published on

Authors
  • Name
    萌新

以下操作在Armbian系统下进行,系统已经预装完成Python3.8。 1.安装pip

sudo apt-get install python3-pip
sudo apt-get install python3-pip

完成后输入pip3 -V检查是否安装成功,如果显示出当前pip版本则安装成功 2.安装Dev套件

sudo apt-get install python3-dev
sudo apt-get install python3-dev

没有开发依赖项在Twisted安装中会提示如下报错。被该报错困扰许久......

BASH
build/temp.linux-x86_64-2.7/twisted/test/raiser.o 
twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory 
#include “Python.h” 
^ 
compilation terminated. 
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
build/temp.linux-x86_64-2.7/twisted/test/raiser.o 
twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory 
#include “Python.h” 
^ 
compilation terminated. 
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

3.安装Scarpy

pip3 install Scarpy
pip3 install Scarpy
Valaxy v0.17.2 驱动 | 主题 - Sakura v0.0.7