ubuntu安装谷歌浏览器 typora+出现编码错误‘ascii‘ codec can‘t encode character ‘\u6b66‘+docker里安装tensorrt报错
一.首先下载谷歌浏览器
https://www.google.cn/chrome/
sudo dpkg -i google-chrome-stable_current_amd64.deb
就安装好了,search谷歌浏览器就可以啦。
二,安装typora
# optional, but recommendedsudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE# add Typora's repositorysudo add-apt-repository 'deb https://typora.io ./linux/'sudo apt-get update# install typorasudo apt-get install typora
三.解决乱码问题
sudo apt-get install unar
unar file.zip
四.出现编码错误'ascii' codec can't encode character '\u6b66' in position 1: ordinal not in range(128)
import sys
sys.stdout.encoding
这个时候知道编码不是utf-8了,所以利用locale -a 查看可以使用的语言环境
vim ~/.bashrc
export LANG="C.UTF-8"
source ~/.bashrc
就可以了.
五.docker里apt-get install tensorrt报错
https://github.com/NVIDIA/TensorRT/issues/792
tensorrt : Depends: libnvinfer7 (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvinfer-plugin7 (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvparsers7 (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvonnxparsers7 (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvinfer-bin (= 7.0.0-1+cuda10.0) but it is not going to be installedDepends: libnvinfer-dev (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvinfer-plugin-dev (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvparsers-dev (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvonnxparsers-dev (= 7.0.0-1+cuda10.0) but 7.2.2-1+cuda11.1 is to be installedDepends: libnvinfer-samples (= 7.0.0-1+cuda10.0) but it is not going to be installedDepends: libnvinfer-doc (= 7.0.0-1+cuda10.0) but it is not going to be installed
mv /etc/apt/sources.list.d/nvidia-ml.list /etc/apt/sources.list.d/nvidia-ml.list.bak
在apt-get install tensorrt 即可
ubuntu安装谷歌浏览器 typora+出现编码错误‘ascii‘ codec can‘t encode character ‘\u6b66‘+docker里安装tensorrt报错相关推荐
- 服务器编码问题ascii’ codec can’t encode character
问题 在他人的提供的docker中,使用python打印结果,结果是一个json字符串,json设置上使用了ensure_ascii=True,然后报unicode error,ascii' code ...
- Python错误:'ascii' codec can't encode character u'\u7b2c' in position 0:
在python2.7下,将字符串写入到文件时会出现"UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in p ...
- UnicodeEncodeError: 'ascii' codec can't encode character....
转自:http://blog.csdn.net/zuyi532/article/details/8851316 python2.7 sql_text = 'insert into gia_list(g ...
- 终极解决方案UnicodeEncodeError: 'ascii' codec can't encode character u'\uff08' in position 13: ordinal not
又遇到报错: UnicodeEncodeError: 'ascii' codec can't encode character u'\uff08' in position 13: ordinal no ...
- UnicodeEncodeError: 'ascii' codec can't encode character u'\u548c' in position 0: ordinal not in ran
问题描述: 运行Python程序时,出现UnicodeEncodeError: 'ascii' codec can't encode character u'\u548c' in position 0 ...
- UnicodeEncodeError: ‘ascii‘ codec can‘t encode character ‘\u5bfc‘ in position 0: ordinal not in rang
在python3.6服务器上运行模型,字符编码出现问题. UnicodeEncodeError: 'ascii' codec can't encode character '\u5bfc' in po ...
- 解决'ascii' codec can't encode character
问题 下午写实验代码时,遇见一个错误. Traceback (most recent call last): File "/home/kang/坚果云_windows/final_paper ...
- Python发邮件: ‘ascii’ codec can’t encode character u’\u201c’ in position 9
错误:ERROR:root:Uncaught exception running rule RMS alert email rule: 'ascii' codec can't encode chara ...
- UnicodeEncodeError: 'ascii' codec can't encode character '\xe3' in position 0: ordinal not in range
UnicodeEncodeError: 'ascii' codec can't encode character '\xe3' in position 0: ordinal not in range( ...
最新文章
- Autodesk PowerInspect 2021中文版
- 文件系统写入100G文件需要多久
- Web站点下的Web Service读取此Web站点中的Session值
- android中ActionBar的几个属性
- “约见”面试官系列之常见面试题第二十五篇之对vue-router的理解(建议收藏)
- wringPi 初始化GPIO 为上拉_GPIO接口
- android 安装卸载应用提醒_Android程序使用代码的安装和卸载!!!
- Python稳基修炼之计算机等级考试易错概念题3(含答案与解析)
- SuseLinux详解(1)——设置开机启动为命令行模式
- requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed c
- matlab 二维低通滤波器,matlab二维低通滤波器
- LSDB和SPF算法
- 基于java植物大全智能识别系统设计与实现
- H5页面input输入框,在ios手机中被顶出页面解决方案
- oracle 无法在指定的节点上,oracle 11g rac 某节点CRS起不来的解决方法
- Excel 2010 VBA 入门 031 批量生成上标
- 最优化方法1——各类拓扑空间与强弱紧集、下半收敛问题
- 基于浙大MO平台的开发机器学习算法
- java-hiho1000A+B
- linux 中 awk sed cut sort 常规操作
热门文章
- 科普一下人工智能领域的研究方向
- 美团数据仓库-数据脱敏
- Android远程调试的探索与实现
- 蚂蚁中间件团队Java面试题:Netty+Redis+Kafka+MongoDB+分布式
- 图解Transformer-一篇文章看懂transformer
- W玻色子质量实验与理论矛盾,或是十年来最重要的进展
- Android UI之困 横跨四个屏幕的战争
- 一个XML转换的例子
- [KMP]一本通(http://ybt.ssoier.cn:8088) 1698:字符串匹配
- 849. 到最近的人的最大距离