- 不能使用chsh命令切换shell
解决方法:yum install util-linux-user
- 安装zsh插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 腾讯云安装docker&加速
https://cloud.tencent.com/document/product/1207/45596 - pip安装爆 Python.h: No such file or directory
yum install python36-devel
- pip换源
创建 ~/.pip/pip.conf[global] index-url = https://mirrors.cloud.tencent.com/pypi/simple trusted-host = mirrors.cloud.tencent.com
-
编译安装高版本pyhton
首先要安装开发工具包,否则编译出来的python会缺少许多模块sudo dnf groupinstall 'development tools' sudo dnf install bzip2-devel expat-devel gdbm-devel \ ncurses-devel openssl-devel readline-devel \ sqlite-devel tk-devel xz-devel zlib-devel wget
然后下载python源码,国内可以用华为镜像站
tar -xzf解压后进入Python-3.7.6目录运行:./configure --enable-optimizations sudo make altinstall
即可
暂无评论