吃得苦中苦,方吃苦中苦
注:根据教程:PYBOSSA官方教程 搭建,然后遇到了一万个问题。
以下是我遇到的大部分问题(WSL),最后的解决方式是下了指定版本的ubuntu。这个教程里说的是18.04(就是别侥幸觉得别的版本也差不了多远)
pip install flask_simpleldap-》
ERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-based projects
sudo apt-get install python-dev build-essential libjpeg-dev libssl-dev libffi-dev
-》
E: Unable to correct problems, you have held broken packages.
sudo apt-get install libdpkg-perl=1.19.7ubuntu3.2
-》成功
sudo apt-get install libc6=2.31-0ubuntu9.9
-》E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
sudo aptitude install libc6=2.31-0ubuntu9.9-》
The following actions will resolve these dependencies:
Keep the following packages at their current version:
-
libc6 [2.35-0ubuntu3.1 (now)]