--- a/src/eric7/PipInterface/PipPackagesWidget.py Tue Oct 18 16:11:00 2022 +0200 +++ b/src/eric7/PipInterface/PipPackagesWidget.py Tue Oct 18 16:24:57 2022 +0200 @@ -287,6 +287,9 @@ @type bool """ if not shutdown: + if self.environmentsComboBox.currentIndex() == 1: + self.environmentsComboBox.setCurrentIndex(0) + # the project entry is always at index 1 self.environmentsComboBox.removeItem(1)