终于解决了python版本问题,运行pip报错
解决python pip 安装报语法错误sys.stderr.write(f“ERROR: {exc}“)
去 https://bootstrap.pypa.io/ 下载相应python版本的 get-pip.py 文件
wget https://bootstrap.pypa.io/2.7/get-pip.py
python get-pip.py安装成功:Successfully installed pip-20.3.4 wheel-0.36.2
再运行我想要的bt系统,结果报错了
# bt start
Starting Bt-Panel... failed
------------------------------------------------------
Traceback (most recent call last):
File "main.py", line 16, in <module>
import sys,web,io,os
ImportError: No module named web
------------------------------------------------------
Error: BT-Panel service startup failed.
原因是web.py模块没有安装,用pip安装试试, 还是报错,不过这次是不一样的错误,原因是6.10的系统2.7的python需要安装指定版本的web.py
pip install web.py==0.51结果成功,bt也成功运行起了
PS:测试环境 centos 6.10, python 2.7
安装脚本setuptools:
wget https://bootstrap.pypa.io/ez_setup.py -O - | python版权属于:Joyber
本文链接:https://blog.qqvbc.com/default/408.html
转载时须注明出处及本声明