Search code examples
pythonubuntumoduleinstallationeasygui

Install Python module easygui on Ubuntu 16.04 without Pip or setup.py


I am new to Ubuntu coming from Windows. I need to install the easygui Python module but the version currently on PyPI has issues. The previous release 0.97 is fine. Using pip install easygui installs 0.98. I can download the 0.97 library from SourceForge and I want to install it on Ubuntu 16.04. The download does not have a setup.py file (which I get how to use to install libraries). In Windows I could copy the easygui.py file to the Libs directory and call the module. Where do I put this file in Linux 16.04? The file structure is confusing for me.


Solution

  • You can use pip to specify the version of the module you would like to install:

    pip install easygui==0.97
    

    You could also tack on the flag --force-reinstall if you run into trouble with the module being installed already.


    as a side note: This might be a good time to start using virtual environments.