Skip to content

Installing IPython on a PC with QGIS 2 and QGIS 3 (OSGeo4W) #26

Description

@mstuyts

I installed the plugin in QGIS 3.4.4 on a PC (Win10) that also has QGIS 2.18.28 installed (both installed with OSGeo4W). After I installed IPython using pip install jupyter==1.0.0 qtconsole in the OSGeo4W shell, the plugin doesn't recognize the IPython installation. I noticed QGIS 3.4.4 and the OSGeo4W shell use a different Python version: QGIS uses Python 3 and OSGeo4W shell uses Python 2.7 by default. So pip installs IPython in the wrong location for use in QGIS 3.4.4.

If I first run py3_env in the OSGeo4W shell and after that install IPython with pip3 install jupyter==1.0.0 qtconsole the plugin recognizes the IPython installation.

After installing IPython to the correct location, the IPython console can be used in QGIS 3.4.4, but opening the IPython console window gives the following error: AttributeError: module 'IPython.core.usage' has no attribute 'default_gui_banner', but that probably is the same as issue #22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions