Ubuntu16.04使用时的一些问题总结

0:Ubuntu下pip3的安装、升级、卸载

安装
sudo apt-get install python3-pip

升级
sudo pip3 install --upgrade pip

卸载
sudo apt-get remove python3-pip


python问题总结:

1:Ubuntu16.4 LTS 使用 pip报错’_NamespacePath’ object has no attribute ‘sort’的解决方法https://blog.csdn.net/zhipeng_hou/article/details/79429759

链接地址:https://blog.csdn.net/zhipeng_hou/article/details/79429759
解决方法

步骤1. 重新安装setuptools模块

[1]. 下载—–从pypi网站上下载setuptools的安装压缩包, 点击跳转/ 点击直接下载zip包
[2]. 解压—–使用unzip相关命令解压下载下来的zip安装包,当然也可以使用其他方式。
[3]. 安装—–进入解压后的文件夹,查看当前目录下是否有名为setup.py的文件,使用python setup.py install命令完成setuptools的重新安装。
步骤2. 重新安装pip模块

安装完成好setuptools后就可以使用easy_install命令了,这样我们就可以重新安装pip了。使用如下命令安装easy_install pip安装完成后就可以正常的使用pip了。

2: Ubuntu16.04上启动Spyder出现错误 AttributeError: module ‘html5lib.treebuilders’ has no attribute ‘_base’ : https://www.aliyun.com/jiaocheng/123686.html

链接地址:https://www.aliyun.com/jiaocheng/123686.html
解决方案:

要升级html5lib库至1.0b8 可以解决问题.
sudo pip install --upgrade html5lib==1.0b8

3:Ubuntu16.04显示内存CPU网速等(System Monitor):

链接地址:https://blog.csdn.net/qq_31811537/article/details/79319357

4:ubuntu常用指令:

链接地址: https://blog.csdn.net/fightingforcv/article/details/47036411

猜你喜欢

转载自blog.csdn.net/zhenaoxi1077/article/details/80671583
今日推荐