Ubuntu18.0 Intellj IDEA the installation, configuration and environmental python


A good memory as bad written -lunix, web development study of the road:

Intellij IDE is a powerful integrated development environment, Web developers use this more, java-friendly development environment. Meanwhile, python development language is also commonly used in web development has many advantages, but the development of python, with pycharm the majority, but in order to reduce the burden on space, to achieve a multi-purpose tool, or use the following research Intellij IDE develop python

Under Ubuntu18.0 Intellj IDEA installation

Installation is very simple, Baidu, there are many tutorials install + crack.
If you have configured JDK, the official website to download Intellj IDEA download ultamate version of linux, without JBR (.tar.gz)
Download the ultimate version of a natural need to hack, crack tutorial, there are many

After installation, the installation path is opened at the terminal bin directory, and run the following command IDE:

./idea.sh

Open the terminal installation path bin directory and run start command

You can run the program

Download python python IDE plug-ins and installation

Intellj IDEA provides a python development of plug-in file-settings-plugins search in python to see, click Install.
Install python plugin
After installation can create a new project and python development environment configured.

ubuntu18.0 system itself with python2.7, python3.6, and the default is version 2.7, ubuntu modify the default version, there are many online tutorials. The system comes with python can not be uninstalled, you can install other versions of python.

作为地理开发人员,python本身是不够的,还需要安装大量其他的功能包。PyPI官网提供了大量资源,同时提供了一个模块安装程序,安装该程序后可以通过执行:

pin install <软件包名称>

进行模块(库)的快速安装
PyPI官网无法提供下载的模块通常会提供与之相关的文件安装链接。可以下载至当前工作目录(如果放在这里,模块只有当在该目录下启动python环境时才能够被识别)或python的site-packages目录(如果放在这里,每当启动python时他都能够被找到),手动安装它们。python编译器会自动搜索上述两个文件路径。

还可以安装Anaconda,Anaconda是一个开源的包、环境管理器,可以用于在同一个机器上安装不同版本的软件包及其依赖,并能够在不同的环境之间切换。
Anaconda official website to download, use arcpy package pay attention to you, it is recommended to download version 2.7
下载linux版本的,python版本可选3.7或2.7. 这里看自己需求。不过要是用3.7,后续用ArcGIS的arcpy包可能就比较难了,不过还是有解决办法… 参考博客:linux系统anaconda3联合arcpy共同工作

扩展关于Anaconda:Anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。因为包含了大量的科学包,Anaconda 的下载文件比较大(约 531 MB),如果只需要某些包,或者需要节省带宽或存储空间,也可以使用Miniconda这个较小的发行版(仅包含conda和 Python)。

Intellj IDEA新建python项目

  1. 新建项目
    Here Insert Picture Description
  2. 配置project SDK

第一项环境选择Existing enviroment,interpreter选择bin目录下的python
Here Insert Picture Description
另配置其他环境和编译器,完成环境配置

参考:

  1. Joel Lawhead forward; Deng Shi-chao translated "Python Geospatial Analysis Guide (Second Edition)", Posts & Telecom Press.
  2. https://blog.csdn.net/allenlu2008/article/details/83901070

Guess you like

Origin blog.csdn.net/qq_40821274/article/details/94484207