python-pycharm(IDE开发环境)部署

进入官网下载pycharm压缩包 :https://www.jetbrains.com/pycharm/download/
前提:需要安装好python / 需要linux安装图形化界面并开启


[root@python3 ~]# ls
pycharm-community-2019.3.2.tar.gz  wget-3.2.zip
pip-19.3.1.tar.gz                  setuptools-45.0.0.zip
[root@python3 ~]# source ~/nsd2020/bin/activate		#激活python的虚拟环境(版本3.6.7)

(nsd2020) [root@python3 ~]# pip install --upgrade pip
(nsd2020) [root@python3 ~]# pip install wget-3.2.zip
(nsd2020) [root@python3 ~]# pip install setuptools-45.0.0.zip
(nsd2020) [root@python3 ~]# exit()

[root@python3 ~]# tar -xf  pycharm-community-2019.3.2.tar.gz
[root@python3 ~]# cd pycharm-community-2019.3.2/bin/
[root@python3 bin]# ls
format.sh     idea.properties  log.xml              pycharm.png  pycharm.vmoptions
fsnotifier    inspect.sh       printenv.py          pycharm.sh   restart.py
fsnotifier64  libdbm64.so      pycharm64.vmoptions  pycharm.svg
[root@python3 bin]# yum -y install java-1.8.0-openjdk       #因为pycharm是java写的.需要安装java环境
[root@python3 bin]# ./pycharm.sh

#如果遇到报错为: 
#[root@python3 bin]# ./pycharm.sh 
#OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 #and will likely be removed in a future release.

#Startup Error: Unable to detect graphics environment
#可执行下列命令
[root@python3 bin]# yum groupinstall "GNOME Desktop"		#安装图形化界面,需要root权限

[root@python3 bin]# startx				#切换图形界面或者init 5
[root@python3 bin]# reboot

[root@python3 bin]# ./pycharm.sh

图形化界面转命令提示符界面:Ctrl+Alt+F2

命令提示符界面转图形化界面:Ctrl+Alt+F1

如果想把英文的改成中文的:输入命令:

yum -y groupinstall chinese-support

编辑/etc/sysconfig/i18n文件,将en_US改成zh_CN

在安装完成之后,如果想系统默认进入的是该图形界面:通过命令行来设置:

  1. 输入命令: systemctl get-default 这个命令可以查看当前是默认哪种模式

2.设置开启默认启动图形界面:输入命令:

systemctl set-default graphical.target(图形界面)

reboot(重启系统)

3.设置开启默认启动命令符界面:输入命令:

systemctl set-default multi-user.target(字符界面模式)

reboot(重启系统)
————————————————
pycharm 跳出页面后的设置:请参考以下文献:
https://blog.csdn.net/weixin_44889616/article/details/93535725

如果没有联网,可以参考这篇优秀的博客进行联网:https://blog.csdn.net/make_1998/article/details/98302235
图形化命令详情可参考:
https://blog.csdn.net/Ginny97/article/details/98323814

发布了46 篇原创文章 · 获赞 0 · 访问量 423

猜你喜欢

转载自blog.csdn.net/weixin_45942735/article/details/104150072