Questions tagged «pycharm»

6
PyCharm 2019不再与QGIS一起使用
自从PyCharm 2019更新以来,我无法加载QGIS Python模块。我也不能使用自动完成功能。我已经删除了缓存(通过使PyCharm中的缓存无效并且还通过删除用户设置目录中的“ system”文件夹),似乎没有任何作用。 在PyCharm中启动Python控制台并键入“ import qgis.core”时,出现以下错误: Traceback (most recent call last): File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.2\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "C:\OSGEO4~1\apps\qgis-ltr\python\qgis\core\__init__.py", line 27, in <module> from qgis._core import * File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.2\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line …



1
如何在Ubuntu OS中将Qgis与pycharm连接
我刚刚开始将pycharm与qgis结合使用,但无法同时连接它们两者。Pycharm始终处于“等待连接”状态。大多数可用的教程都指向Windows,但是我使用的是ubuntu,所以找不到在pycharm上调试qgis代码的方法。这是我的pycharm代码: from shapely.geometry import * from shapely.wkt import loads import sys import pydevd pydevd.settrace('localhost', port=53100, stdoutToServer=True, stderrToServer=True) class Loader: def __init__(self, iface): """Initialize using the qgis.utils.iface object passed from the console. """ self.iface = iface 我在pycharm中启用了断点,并在pythonpath中添加了pycharm-debug.egg,有人从ubuntu上的qgis如何配置它吗? pycharm始终位于: Starting debug server at port 53100 Use the following code to connect to …
10 qgis  python  ubuntu  pycharm 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.