Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing downloaded tar.gz files with pip [duplicate]

Tags:

python

pip

pygui

When I download PyGUI-2.5.4.tar.gz from http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ and then run

pip install downloads/PyGUI-2.5.4.tar.gz

I get a long error, the root of which appears to be the following:

tarfile.ReadError: not a gzip file

Any ideas what I'm doing wrong?

like image 970
Shane Avatar asked Apr 14 '17 22:04

Shane


People also ask

Can pip install Tar GZ files?

pip install <path-to-tar-gz> should work. If it does not, your tar. gz is probably packaged incorrectly, and you should either contact package maintainers, or (if you are the maintainer), look for help by posting here how it went wrong for you.

How do I fix pip not installing?

A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.

What is the difference between pip install and pip download?

Overview. pip download does the same resolution and downloading as pip install , but instead of installing the dependencies, it collects the downloaded distributions into the directory provided (defaulting to the current directory).


1 Answers

The correct syntax for the installation is:

pip install --user ./Downloads/PyGUI-2.5.4.tar.gz

The --user is used to give the necessary permissions to install the package. Always check for the correct path and Upper and Lower case in your path(Your path was to 'downloads' with small 'd' ).

like image 114
Akash Agrawal Avatar answered Sep 29 '22 08:09

Akash Agrawal