当前位置:   article > 正文

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/1008424
推荐阅读
相关标签
  

闽ICP备14008679号