日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

ubuntu安装谷歌浏览器 typora+出现编码错误‘ascii‘ codec can‘t encode character ‘\u6b66‘+docker里安装tensorrt报错

發布時間:2024/7/23 HTML 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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报错的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。