anolis 8.8 (CentOS 8) 环境下搭建青岛大学OJ

blues667 / 2023-07-10 / 原文

#yum -y install python3-pip   // system replied: Package python3-pip-9.0.3-22.an8.noarch is already installed.

#pip install docker-compose  //system replied:  bash: pip: command not found...

#whereis pip  //system replied:  pip: /usr/bin/pip3.6

#cd /usr/bin

#ln -s pip3.6 pip

#pip install docker-compose   //system replied: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lo78cwi1/bcrypt/

#where is python  //system replied: python: /usr/bin/python3.6 

#cd /usr/bin

#ln -s python3 python

#pip install docker-compose //system replied:

Could not find a version that satisfies the requirement cryptography>=3.3 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]>=5->docker-compose) (from versions: )
No matching distribution found for cryptography>=3.3 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]>=5->docker-compose)

#yum -y install python39

#cd /usr/bin

#ln -s python39 python

#rm pip

#ln -s pip3.9 pip

#cd /home/cjl/OnlineJudgeDeploy

#pip install docer-compose //succed!