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

发布于:2024-08-19 ⋅ 阅读:(139) ⋅ 点赞:(0)

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博客


网站公告

今日签到

点亮在社区的每一天
去签到