1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > debian9为什么默认是pip2_Debian9 安装后基本配置

debian9为什么默认是pip2_Debian9 安装后基本配置

时间:2022-06-04 14:23:29

相关推荐

debian9为什么默认是pip2_Debian9 安装后基本配置

前言

文中使用为Debian 9.4的 ISO镜像安装。

1. 修改源文件

gedit /etc/apt/sources.list

注释下面这条:

deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 0310-11:21]/ stretch contrib main

添加以下内容:

deb http://mirrors./debian/ stretch main non-free contrib

deb http://mirrors./debian/ stretch-updates main non-free contrib

deb http://mirrors./debian/ stretch-backports main non-free contrib

deb-src http://mirrors./debian/ stretch main non-free contrib

deb-src http://mirrors./debian/ stretch-updates main non-free contrib

deb-src http://mirrors./debian/ stretch-backports main non-free contrib

更新:

su

apt-get update

2. 安装sudo

默认状态是没有sudo命令的,需要安装。

apt-get install sudo

编辑sudoers文件

gedit /etc/sudoers

在%sudo ALL=(ALL:ALL) ALL 下面添加:

**** ALL=(ALL:ALL) ALL

其中****为自己的用户名

3. 解决输入法问题

安装搜狗输入法 搜狗输入法 for linux下载对应版本,我下载到的文件是:sogoupinyin_2.2.0.0102_amd64.deb,执行命令安装,解决依赖:

sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb

sudo apt-get install -f

重启电脑

解决中文输入法不可用的问题

输入的时候各种ctrl+space或者ctrl+shift一通乱按就是什么也看不到?因为根本就没有Ui控件…你需要安装输入法前端所需的ui动态库。

apt-get install fcitx-ui-classic && apt-get install fcitx-ui-light

4. 安装网易云音乐

下载网易云音乐 for linux,下载Ubuntu64版本安装并解决依赖。

sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb

sudo apt-get install -f

点桌面图标启动不了,用sudo启动就OK。

sudo netease-cloud-music

5. 安装PyCharm,并添加桌面图标

下载PyCharm并激活,添加快捷方式

sudo gedit /usr/share/applications/Pycharm.desktop

添加内容:

[Desktop Entry]

Type=Application

Name=Pycharm

GenericName=Pycharm3

Comment=Pycharm3:The Python IDE

Exec=sh 实际路径/bin/pycharm.sh

Icon= 实际路径/bin/pycharm.png

Terminal=pycharm

Categories=Pycharm;

至此,就可以听着音乐,用着搜狗输入法,愉快的写Python了!

Debian9.png

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。