2025年Linux 学习笔记--.tar.gz文件的安装(以pycharm安装为例)

Linux 学习笔记--.tar.gz文件的安装(以pycharm安装为例)最近打算在 linux 系统下进行编程 所以要在 ubuntu18 04 系统上安装 pycharm 因为第一次接触 tar gz 类型的压缩文件 所以就把自己的安装过程记录下来 首先从官网上下载对应的压缩包 官网连接如下 https www jetbrains

大家好,我是讯享网,很高兴认识大家。

最近打算在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就可以顺利打开。

小讯
上一篇 2025-02-15 14:43
下一篇 2025-04-04 10:21

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/97291.html