Install Python3 on Ubuntu 14.04

Scrapy already supports Python3 https://blog.scrapinghub.com/2016/02/04/python-3-support-with-scrapy-1-1rc1/

Before installing Scrapy, make sure the following are installed:

1、 Python3.5

2、 pip Python 2.7.9 and later versions include pip.

3、 lxml Most Linux versions have already installed lxml, otherwise refer to http://lxml.de/installation.html for installation.

4、 OpenSSL is pre-installed in most operating systems.

Install Python3.5 first

The ubuntu14.04 system will come with python2.7, **please do not uninstall it**. Different versions of python can coexist on the same system.

After uninstalling, the desktop system will be affected.

(1)sudo add-apt-repository ppa:fkrull/deadsnakes

(2)sudo apt-get update

(3)sudo apt-get install python3.5

(4) sudo cp /usr/bin/python /usr/bin/python_bak, first backup
(5) sudo rm /usr/bin/python, delete
(6) sudo ln -s /usr/bin/python3.5 /usr/bin/python, the default is set to python3.5, rebuild the soft link so that entering python in the terminal defaults to version 3.5.2.

Because pip, lxml and OpenSSL are pre-installed in ubuntu, you can install scrapy directly.

Install Scrapy

Don't use the python-scrapy package provided by Ubuntu, it is too old and too slow. There are two alternatives:

The first: use the official Ubuntu package, which has resolved all dependencies and continued to fix bugs.

step:

(1)Import the GPG key used to sign Scrapy packages into APT keyring:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80--recv 627220E7

(2) Use the command to create the /etc/apt/sources.list.d/scrapy.list file:

< del>echo 'deb http://archive.scrapy.org/ubuntu scrapy main'| sudo tee /etc/apt/sources.list.d/scrapy.list</del>

(3) Update the package list and install the scrapy package:

< del>sudo apt-get update && sudo apt-get install scrapy</del>

If you want to update Scrapy, repeat (3).

If you want to build Python dependencies locally without using system packages, you can use one of the following methods:

step:

(1) Install non-python dependencies

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev

(2) Installation

Recommended Posts

Install Python3 on Ubuntu 14.04
Install Python3 on Ubuntu 16.04
Install Python3.7 on Ubuntu
Install Python 3.7 on Ubuntu 18.04 LTS
ubuntu18.04 install python2
ubuntu12.04 install python3
ubuntu18.04 install python
How to install Python 3.8 on Ubuntu 18.04
Install Python virtual environment on Ubuntu 18.04
Install TensorFlow (python2.7 version) on Ubuntu
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
Install python in Ubuntu
Install KDE on Ubuntu16.04.2
Install Docker on Ubuntu18
Install flashplayer on Ubuntu
Install the latest Python 3.6 version on Ubuntu
How to install Python2 on Ubuntu20.04 ubuntu/focal64
Use python3 to install third on ubuntu
Install ubuntu on virtual machine
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
Install QQ robot on Ubuntu 16.04
Ubuntu install the latest Python 3.
ubuntu18.04 compile and install python3.8
Install Android Studio on Ubuntu
Install python3 on linux, keep python2
Install scrapy framework on ubuntu
Install Mysql offline on Ubuntu
Install Oracle Java8 on Ubuntu
[Practice] How to install python3.6 on Ubuntu system
Install Odoo 11 stack on Ubuntu 16.04
Install Go locale on Ubuntu16
Install common software on Ubuntu 16.04
Install non-portable QQ on ubuntu
Install Docker on Ubuntu 18.04 offline
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
Install Tenda u12 driver on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
Install Chef server workstation on Ubuntu 18.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04