欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 维修 > Ubuntu环境下 pip安装应用时报错

Ubuntu环境下 pip安装应用时报错

2024/10/25 2:28:58 来源:https://blog.csdn.net/figosoar/article/details/141231901  浏览:    关键词:Ubuntu环境下 pip安装应用时报错

pip安装应用时,报SSL错

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

可能原因是python没有ssl,则在python安装时应该添加ssl

./configure --with-openssl=/usr/local/ssl

参见:

python3.8安装:

Ubuntu 安装Python3.8_ubuntu安装python3.8-CSDN博客

ssl问题解决:【Python】已解决:WARNING: pip is configured with locations that require TLS/SSL, however the ssl module i_pip install numpy warning: pip is configured with -CSDN博客

pip时报错如下

zipimport.ZipImportError: can‘t decompress data; zlib not available

采用如下方式

sudo apt install zlib1g-dev

参见:

zipimport.ZipImportError: can‘t decompress data; zlib not available 解决_zipimport.zipimporterror: can't decompress data; z-CSDN博客

Linux pip安装应用时distro-info报错:

Error parsing dependencies of distro-info: Invalid version: '0.18ubuntu0.18.04.1'

尝试修复

pip install --upgrade distro-info

git-lfs安装

首先下载安装文件

apt/deb repos: 

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

yum/rpm repos: 

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash

安装

apt/deb: 

sudo apt-get install git-lfs

yum/rpm: 

sudo yum install git-lfs

然后

git lfs install

再clone文件即可。

参见:

GitHub:https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md

Git LFS介绍:git-lfs的安装和使用_git-lfs安装-CSDN博客

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com