“pip install MySQL-python”在 Ubuntu 20.04 上不起作用

问题描述

当我尝试使用 Python 2.7 的 pip 安装 MysqL-python 时,它在 Ubuntu 20.04 上不再工作 - 在 Ubuntu 18.04 上它仍然工作......

知道如何在 Ubuntu 20.04 上运行它吗?

我知道 Python 2.7 不再受支持,但我仍然需要在我的 Ubuntu 20.04 服务器上运行它,因为我运行的是旧版本的 Trac,由于插件,我现在无法升级在最新版本中不起作用...

gpio_config_t io_conf;
//disable interrupt
io_conf.intr_type = GPIO_INTR_disABLE;
//set as output mode
io_conf.mode = GPIO_MODE_OUTPUT;
//bit mask of the pins that you want to set,e.g.GPIO15/16
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
//disable pull-down mode
io_conf.pull_down_en = 0;
//disable pull-up mode
io_conf.pull_up_en = 0;
//configure GPIO with the given settings
gpio_config(&io_conf);


//interrupt of rising edge
io_conf.intr_type = GPIO_INTR_POSEDGE;
//bit mask of the pins,use GPIO4/5 here
io_conf.pin_bit_mask = GPIO_INPUT_PIN_SEL;
//set as input mode
io_conf.mode = GPIO_MODE_INPUT;
//enable pull-up mode
io_conf.pull_up_en = 1;
gpio_config(&io_conf);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)