# 首先从 Anaconda 官网下载 anaconda Linux 64Bit 版本命令行安装包
$ wget https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh # 修改权限让脚本可以运行
$ chmod +x Anaconda3-5.2.-Linux-x86_64.sh # 运行该安装脚本
$ ./Anaconda3-5.2.-Linux-x86_64.sh # 剩下就是一路Yes或者Enter好了... Welcome to Anaconda3 5.2. (by Continuum Analytics, Inc.) In order to continue the installation process, please review the license agreement. Please, press ENTER to continue
>>> # 重新加载一下 bash 就可以使用 `conda` 命令了
$ source ~/.bashrc #然后尝试一下运行 `conda -V` 命令行看是否已经安装成功,如果返回对应的版本信息,则说明安装成功。 $ conda -V
conda 4.2.13 一、更新 conda 命令:conda update -n base conda
二、安装 Scrapy 命令:conda install scrapy
2、遇到问题:tar (child): bzip2: Cannot exec: No such file or directory
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
解决方法很简单,只要安装bzip2就行了,yum安装的命令如下:
yum -y install bzip2
参考网址:https://blog.csdn.net/mysteryflower/article/details/93064195
如果:centos7安装scrapy error: command ‘gcc’ failed with exit status 1 执行以下命令:
yum install gcc libffi-devel python-devel openssl-devel
如果重装 Anaconda3 需要执行以下命令:
出现问题:ERROR: File or directory already exists: /root/anaconda3 解决方案:删除即可 rm -rf /root/anaconda3
参考网址:
1、https://rqalpha.readthedocs.io/zh_CN/latest/intro/detail_install.html
2、https://blog.csdn.net/ithongchou/article/details/83857346
3、https://blog.csdn.net/mysteryflower/article/details/93064195