Open SrNetoChan opened 2 years ago
@SrNetoChan I don't know anything about PowerShell, but GDAL has PowerShell support (https://github.com/conda-forge/gdal-feedstock/blob/master/recipe/scripts/activate.ps1) - maybe these scripts could be used as the basis for support in QGIS?
Did you manage to work this one out @SrNetoChan ?
Didn't try much. Seems that PowerShell is not that popular for windows users.
I have similar problem. Though i haved installed QGIS module, when i try to run my python code with powershell it can not run successfully, and error output is "ModuleNotFoundError: No module named 'qgis'".But if i run the same python code with cmd, it will be ok.
Yes, we would need to create activate scripts for ps1, like GDAL did. Unfortunately, I don't have the time (or need) for it. Let's keep this open anyway.
Issue:
It seems that the activate.bt script is not suited for windows powershell and QGIS Python path is not added to the PYTHONPATH variable. Everything works fine if one uses the old command line prompt instead.
Environment (
conda list
):Details about
conda
and system (conda info
):