make services
Q1:卡在Downloading Python-X.X.X.tar.xz...
手动下载对应版本放到根目录的.cache下重新执行命令
Q2:
pip:命令未找到
pip:No such file or directory
which pip
type pip
hash -r
Q3:
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
ERROR: InvocationError for command /usr/local/h/.tox/dockercompose/bin/docker-compose up -d (exited with code 1)
___________________________________ summary ____________________________________
ERROR: dockercompose: commands failed
docker没启动,启动docker:systemctl start docker
Q4:
ERROR: could not install deps [-rrequirements/dev.txt]; v = InvocationError('/usr/local/h/.tox/dev/bin/python -m pip install -rrequirements/dev.txt', 1)
_____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
ERROR: dev: could not install deps [-rrequirements/dev.txt]; v = InvocationError('/usr/local/h/.tox/dev/bin/python -m pip install -rrequirements/dev.txt', 1)
1.首先尝试
pip install --upgrade pip tox virtualenv
2.上述报错,可能是pip源的问题
cd ~
mkdir .pip
touch pip.conf
加入以下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
国内常用镜像源汇总
清华镜像 https://pypi.tuna.tsinghua.edu.cn/simple
中科大镜像 https://pypi.mirrors.ustc.edu.cn/simple
豆瓣镜像 http://pypi.douban.com/simple/
阿里镜像 https://mirrors.aliyun.com/pypi/simple/
华中科大镜像 http://pypi.hustunique.com/
山东理工大学镜像 http://pypi.hustunique.com/
搜狐镜像 http://mirrors.sohu.com/Python/
百度镜像 https://mirror.baidu.com/pypi/simple
更改后在尝试make services,若报错,使用Q4-1
Q5:
继Q4后 可以正常下载 但是错误信息有 Error: pg_config executable not found 字样
手动安装
①yum install libpqxx-devel python-devel 或者 sudo apt-get install libpq-dev python-dev
②pip install psycopg2
嗯,到了这里差不多我就启动起来了,这是我第2次部署,第一次的时候问题更多,我把第一次遇到的问题解决命令放在下面,如果遇到了直接执行就好
pip install newrelic -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
yum -y install patch
yum install postgresql-devel