IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
235 stars 120 forks source link

Removing old installation eggs #381

Closed byersiiasa closed 3 years ago

byersiiasa commented 4 years ago

I can across a difficulty recently in updating pyam from master. When importing it in jupyter notbeook it was finding the wrong old version despite attempts to install with pip and setup.py

More inspection revealed two things:

  1. That there was a nest of old eggs in the site-packages folder of the environment,
  2. that my sys.path also had these old eggs specifically listed, in chronological order, so it was always finding the oldest version first.

Is it expected behaviour that the old eggs stay in site-packages when updates are installed? is it necessary to keep them, otherwise removing them could reduce chance of errors

byersiiasa commented 4 years ago

e.g. image image

byersiiasa commented 4 years ago

BTW - removing said items from path and the folders from the dir fixes the issue

danielhuppmann commented 3 years ago

Closing as this seems to be a general "how to install packages from source" issue, not directly related to pyam... Please re-open if I misunderstood the issue and it needs to be fixed in pyam.