Select to view content in your preferred language

PyQt (Python Package) missing from Pro 2.7.x Package Manager?

1101
2
02-23-2021 03:09 PM
DL_NCT911
New Contributor

We upgraded to ArcGIS Pro 2.7.1 from 2.6.x today, so I'm going through the routine of adding the Qt and PyQt Python packages back into my cloned environment. I re-added Qt just fine, but the PyQt package is missing entirely. It's not showing up within the Installed Packages or the Add Packages section. Both packages were easy to locate and install in previous versions:

DL_NCT911_0-1614121326571.png

 


Here's what I see currently within my Installed Packages and Add Packages sections. No reference to pyqt specifically.
DL_NCT911_2-1614121563822.png

DL_NCT911_1-1614121426709.png



Has PyQt support been removed with Pro 2.7.x, or has something changed that I'm out-of-the-loop on? I have tools that rely on this, so any clarification is most welcomed!

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor
(arcgispro-py3) C:\YourInstallFolder\bin\Python\envs\arcgispro-py3>conda list pyqt
# packages in environment at C:\------\bin\Python\envs\arcgispro-py3:
#
pyqt                      5.9.2            py37h6538335_2

(arcgispro-py3) C:\-------\bin\Python\envs\arcgispro-py3>

And in your windows folder

C:\YourInstallFolder\bin\Python\envs\arcgispro-py3\Lib\site-packages\PyQt5

but I have Spyder installed which uses qt bindings.

 


... sort of retired...
0 Kudos
DL_NCT911
New Contributor

I appreciate the feedback, Dan. The PyQt5 folder was in the site-packages folder as you described, but I'm guessing it wasn't installed...? I couldn't get it to be recognized by my interpreter, nor did any of it carry over into my cloned environment. I ended up using pip to manually install PyQt5 to my cloned environment. I'm not sure if this was the Esri-preferred way of doing things, but my interpreter recognizes the module now and my tools are functioning again. I've never had to do something like this before with PyQt. Usually I just find/add it through Pro's Package Manager and voila!

DL_NCT911_0-1614126901201.png

 

0 Kudos