![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
瑾珮
GXW
展开
-
查找可用串口(Windows+Linux平台)
查找可用串口(Windows+Linux平台)原创 2023-02-01 12:15:14 · 2621 阅读 · 1 评论 -
AttributeError: module ‘sipbuild.api‘ has no attribute ‘prepare_metadata_for_build_wheel‘
pyqt5原创 2023-01-30 10:44:42 · 1624 阅读 · 0 评论 -
树莓派安装PyQT5
PyQT5原创 2023-01-16 11:57:59 · 2461 阅读 · 1 评论 -
Linux下后台Python运行程序,并输出日志文件
后台运行Python程序,然后把打印信息保存在指定的日志文件中,可随时查看日志。一、启动命令1、一般使用nohup python -u pyth.py >log.log 2 >&1 &2、只记录异常日志(推荐)nohup python -u pyth.py >/dev/null 2>error.log 2>&1 &3、不记录任何日志nohup python -u pyth.py >/dev/null 2>&原创 2021-04-14 08:40:38 · 1057 阅读 · 0 评论 -
linux下安装nginx报错error: the HTTP rewrite module requires the PCRE library.
解决办法:安装pcre-devel和openssl openssl-develyum -y install pcre-develyum -y install openssl openssl-devel原创 2020-10-24 22:05:06 · 306 阅读 · 0 评论 -
Centos 7 防火墙firewalld命令
一、防火墙的开启、关闭、禁用命令(1)设置开机启用防火墙:systemctl enable firewalld.service(2)设置开机禁用防火墙:systemctl disable firewalld.service(3)启动防火墙:systemctl start firewalld(4)关闭防火墙:systemctl stop firewalld(5)检查防火墙状态:systemctl status firewalld二、使用firewall-cmd配置端口(1)查看防火墙状态:fir原创 2020-10-24 16:43:25 · 527 阅读 · 0 评论 -
Linux虚拟环境扩展包创建python虚拟环境——保持项目python环境干净
使用virtualenv包管理工具来管理虚拟环境1、安装virtualenvpip install virtualenv若报错找不到对应的版本yum install python-virtualenv2、安装虚拟环境扩展包安装虚拟环境包装器的目的是使用更加简单的命令来管理虚拟环境。sudo pip3 install virtualenvwrapper -i https://pypi.tuna.tsinghua.edu.cn/simple修改用户目录下的配置文件.bashrc,打开文件原创 2020-10-24 12:06:15 · 286 阅读 · 0 评论 -
Linux安装virtualenvwrapper报错
报错如下:distutils.errors.DistutilsError: Command ‘[’/usr/bin/python3’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘/tmp/tmpp3zz0h98’, ‘–quiet’, ‘–index-url’, ‘http://mirrors.cloud.aliyuncs.com/pypi/simple/’, ‘pbr’]’ returned non-ze原创 2020-10-24 11:32:01 · 326 阅读 · 0 评论 -
Linux安装pip并建立软连接
1、打开pip官网后,点击“Installation”2、进入Installation页面后,右键点击“get-pip.py”,选择“复制链接地址”3、在Linux中输入 wget 粘帖复制的地址wget https://bootstrap.pypa.io/get-pip.py4、下载完成后,执行命令python get-pip.py5、建立软连接rm -rf /usr/bin/pip# 删除原来已有的pip软连接ln -s /usr/local/lib/python3.6/si原创 2020-10-24 10:48:29 · 5560 阅读 · 0 评论 -
Linux的链接命令ln详解
链接命令 ln命令名称:ln英文原意:link命令所在路径:/bin/ln执行权限:所有用户功能描述:生成链接文件软链接语法:ln -s [原文件] [目标文件]#-s参数: 创建软链接ln -s /etc/issue /tmp/issue.soft#创建/etc/issue文件的软链接/tmp/issue.softln /etc/issue /tmp/issue.hard#创建/etc/issue文件的硬链接/tmp/issue.hard查看软链接ls -l软链接就类原创 2020-10-24 10:47:24 · 605 阅读 · 0 评论 -
Linux中pip能找到命令,加了sudo后报错:sudo: pip: command not found
问题Linux的Centos下执行命令sudo pip list出现报错原因编译sudo的时候加入了–with-secure-path 选项。解决在环境配置文件里加一个alias(1) 执行命令vi ~/.bashrcvi打开文件后是命令模式状态,要用i或者a命令才可进入可编辑的状态,添加内容:alias sudo='sudo env PATH=$PATH'(2)执行命令source ~/.bashrc...原创 2020-10-24 10:19:45 · 971 阅读 · 0 评论