TK Framework double implementation issue

前端 未结 3 529
深忆病人
深忆病人 2020-12-31 10:52

I am testing out creating a GUI using the Tkinter module. I was trying to add an image to the GUI using PIL. My code looks like this:

import Tkinter as tk
fr         


        
3条回答
  •  梦谈多话
    2020-12-31 11:26

    I try to conduct my own investigation of this problem (in my case that was problem with matplotlib)

    • I try to found binaries, linked with System Tcl/Tk Library paths
    • With libraries i found file, which seems really interesting. It has name name osx-tk.patch and was placed in ~/anaconda/pkgs/matplotlib-1.5.1-np111py35_0/info/recipe/
    • Found osx-tk.patch sources into GitHub

    • After reading the patch and Conda documentation i became finally convinced about wrong package installation, and i remember, that i used pip for matplotlib installation!

    • I deleted old package with pip and install new one with conda install matplotlib command

    • Now everything started to work like a charm!

    Brief summary:

    Using pip package manager with conda environment, i messed my dependencies, because conda may using special recipes, that point installer how to install package correctly in conda virtual environment

    Ultra-Brief summary:

    Delete package fully with dependencies and install it again with conda package manager (use rebinding only in difficult cases)

提交回复
热议问题