最近打算在linux系统下进行编程,所以要在ubuntu18.04系统上安装pycharm。因为第一次接触.tar.gz类型的压缩文件,所以就把自己的安装过程记录下来:
首先从官网上下载对应的压缩包,官网连接如下:
https://www.jetbrains.com/pycharm/download/#section=linux
第二步解压缩:
压缩包安装好后可以在Downloads中找到,打开一个终端,并进入到Downloads目录中
cd ~/Downloads
? ? ? ? 用以下的命令进行解压缩:
tar -zxvf pycharm-community-2021.2.2.tar.gz
第三步把文件转移到/usr/lib目录下:
一般来说usr/lib存放的是应用软件用到的函数库文件,所以要把解压后的pycharm目录move到此目录下:
sudo mv pycharm-community-2021.2.2/ /usr/lib/
一般来说解压后的目录下会有安装的说明,按照说明文件安装:
PyCharm
INSTALLATION INSTRUCTIONS
===============================================================================
1. Unpack the PyCharm distribution archive that you downloaded
where you wish to install the program. We will refer to this
location as your {installation home}.
2. To start the application, open a console, cd into "{installation home}/bin" and type:
./pycharm.sh
This will initialize various configuration files in the configuration directory:
~/.config/JetBrains/PyCharmCE2021.2.
3. [OPTIONAL] Add "{installation home}/bin" to your PATH environment
variable so that you can start PyCharm from any directory.
4. [OPTIONAL] To adjust the value of the JVM heap size, create a file pycharm.vmoptions
(or pycharm64.vmoptions if using a 64-bit JDK) in the configuration directory
and set the -Xms and -Xmx parameters. To see how to do this,
you can reference the vmoptions file under "{installation home}/bin" as a model
but do not modify it, add your options to the new file.
[OPTIONAL] Change the location of the "config" and "system" directories
------------------------------------------------------------------------------
By default, PyCharm stores all your settings in the
~/.config/JetBrains/PyCharmCE2021.2 directory
and uses ~/.local/share/JetBrains/PyCharmCE2021.2 as a data cache.
To change the location of these directories:
1. Open a console and cd into ~/.config/JetBrains/PyCharmCE2021.2
2. Create a file idea.properties and set the idea.system.path and idea.config.path variables, for example:
idea.system.path=~/custom/system
idea.config.path=~/custom/config
NOTE: Store the data cache ("system" directory) on a disk with at least 1 GB of free space.
Enjoy!
-PyCharm Development Team
? ? ? ? 最后是打开并运行应用,先进入到/usr/lib/pycharm-community-2021.2.2/bin目录下,运行:
./pycharm.sh
? ? ? ? 到此pycharm就可以顺利打开。
|