当我PyGUI-2.5.4.tar.gz
从http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/下载然后运行
pip install downloads/PyGUI-2.5.4.tar.gz
我收到一个很长的错误,其根源似乎如下:
tarfile.ReadError: not a gzip file
任何想法我做错了什么?
当我PyGUI-2.5.4.tar.gz
从http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/下载然后运行
pip install downloads/PyGUI-2.5.4.tar.gz
我收到一个很长的错误,其根源似乎如下:
tarfile.ReadError: not a gzip file
任何想法我做错了什么?
安装的正确语法是:
pip install --user ./Downloads/PyGUI-2.5.4.tar.gz
--user
用于授予安装软件包所需的权限。始终检查路径中的正确路径和大小写(您的路径是使用小 'd' 进行“下载”)。
您可以使用 pip 安装 tar.gz 安装特定的源存档文件。
pip install ./Package-1.0.4.tar.gz
您也可以通过解压 tar.gz 文件来安装它。首先,您应该使用 tar 命令提取它。
tar -xzvf PyGUI-2.5.4.tar.gz
cd PyGUI-2.5.4.tar.gz
然后使用 setup.py 文件安装包。
python setup.py install
或者
sudo python setup.py install
(仅在 linux 中使用 sudo )
来源:https ://pip.readthedocs.io/en/stable/reference/pip_install/#git