1024程序员特惠活动,3年企业版2399元,立省600元!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【已解答】关于宝塔面板安装docker-compose的问题

发表在 Linux面板2023-1-3 19:14 [复制链接] 7 5995

centos7全新安装宝塔面板,安装docker-compose,出现pip升级问题,但是执行pip install --upgrade pip升级命令又不成功。
You are using pip version 8.1.2, however version 22.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


使用道具 举报 只看该作者 回复
发表于 2023-1-3 19:19:24 | 显示全部楼层
您好,面板使用的环境是btpython|btpip ,pip是系统的python环境,您使用btpip进行管理
使用道具 举报 回复 支持 反对
发表于 2023-1-3 19:25:14 | 显示全部楼层
大炮运维V587 发表于 2023-1-3 19:19
您好,面板使用的环境是btpython|btpip ,pip是系统的python环境,您使用btpip进行管理
...

btpip命令怎么执行
使用道具 举报 回复 支持 反对
发表于 2023-1-3 19:58:21 | 显示全部楼层

你执行 btpip 能执行成功吗?
使用道具 举报 回复 支持 反对
发表于 2023-1-3 20:10:57 | 显示全部楼层
大炮运维V587 发表于 2023-1-3 19:58
你执行 btpip 能执行成功吗?

成功了,运行btpip install -r requirements.txt,为何一直卡住。
[root@server DCRM]# btpip install -r requirements.txt
Collecting django-contrib-comments
  Cloning git://github.com/django/django-contrib-comments.git (to revision f498cee0e04a4bcd4e061b25805c83ef08e9e536) to /tmp/pip-install-euzbfb1p/django-contrib-comments_39a261feb7e94d08b2f3b46e27cb6692
  Running command git clone --quiet git://github.com/django/django-contrib-comments.git /tmp/pip-install-euzbfb1p/django-contrib-comments_39a261feb7e94d08b2f3b46e27cb6692
  fatal: unable to connect to github.com:
  github.com[0: 20.205.243.166]: errno=Connection timed out

  error: subprocess-exited-with-error
使用道具 举报 回复 支持 反对
发表于 2023-1-3 20:12:45 | 显示全部楼层
靠捡垃圾维持生活 发表于 2023-1-3 20:10
成功了,运行btpip install -r requirements.txt,为何一直卡住。
[root@server DCRM]# btpip install -r ...
github.com[0: 20.205.243.166]: errno=Connection timed out

  error: subprocess-exited-with-error
你服务器连不上github
使用道具 举报 回复 支持 反对
发表于 2023-1-3 20:19:05 | 显示全部楼层
大炮运维V587 发表于 2023-1-3 20:12
你服务器连不上github

可以, git clone --depth 1 https://github.com/82Flex/DCRM.git && cd DCRM此项目正常,构建并启动 容器的时候需要安装btpip install -r requirements.txt,然后就出现上面的
使用道具 举报 回复 支持 反对
发表于 2023-1-3 20:24:22 | 显示全部楼层
靠捡垃圾维持生活 发表于 2023-1-3 20:19
可以, git clone --depth 1 https://github.com/82Flex/DCRM.git && cd DCRM此项目正常,构建并启动 容 ...

自己可以根据上面的错误 排查下是不是连接超时。
fatal: unable to connect to github.com:
  github.com[0: 20.205.243.166]: errno=Connection timed out

  error: subprocess-exited-with-error
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表