pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

前言:ansible运行报错

/usr/lib64/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.  CryptographyDeprecationWarning

环境说明:

主机名操作系统版本python版本python3版本pip版本pip3版本ansibleCentos 7.6.1810Python 2.7.5Python 3.6.8pip 20.2.2(python 2.7)pip 20.2.2(python 3.6)

一、安装ansible

[root@ansible ~]# yum -y install https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.9.9-1.el7.ans.noarch.rpm

pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

使用yum方式安装ansible,指定安装ansible版本为2.9.9

二、运行ansible

运行ansible时有如下提示

[root@ansible ~]# ansible --version/usr/lib64/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.  CryptographyDeprecationWarning,ansible 2.9.10  config file = /etc/ansible/ansible.cfg  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']  ansible python module location = /usr/lib/python2.7/site-packages/ansible  executable location = /usr/bin/ansible  python version = 2.7.5 (default, Apr  2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

虽然这个提示不影响使用,但是对于有强迫症的我来说是不可接受的

三、问题解决

1.卸载ansible

[root@ansible ~]# yum remove ansible

pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

2.使用pip3重新安装ansible

[root@ansible ~]# pip3 install xlrd -i http://pypi.douban.com/simple --trusted-host pypi.douban.com[root@ansible ~]# mkdir ~/.pip[root@ansible ~]# touch ~/.pip/pip.conf[root@ansible .pip]# more pip.conf[global]index-url = http://pypi.douban.com/simple[install]trusted-host = pypi.douban.com[root@ansible .pip]# pip3 install ansible==2.9.9

pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

使用pip3重新安装ansible,重装后问题解决

更多内容请关注公众号: Linux运维实践

pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

Original: https://blog.csdn.net/weixin_35702486/article/details/113630320
Author: 想家1953
Title: pip3 install pygame 报错_ansible运行报错:CryptographyDeprecationWarning解决

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/782457/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • pandas合并Dataframe或Series操作——merge()函数_1

    在数据操作时,经常会遇到合并数据集的情况,使用merge()函数可以将Dataframe或Series快速合并 pd.merge()的主要参数 merge合并dataframe(s…

    Python 2023年8月15日
    068
  • pytest teardown 未执行_python3+pytest+allure框架搭建之pytest详解(一)

    前言:之前在网上查了不少关于pytest的资料,总结了一下pytest比较重要的点: 1、可以更好的控制测试用例 2、支持很多第三方插件,并可以自定义扩展 3、执行失败的测试用例可…

    Python 2023年9月13日
    048
  • Pygame使用测试(五)

    在本节中介绍 Sprite 分组、碰撞检测、用户事件和其他一些功能。 self.rect.move_ip(0,SPEED) 在Enemy类Move方法中添加,完整代码如下: SPE…

    Python 2023年9月21日
    039
  • pandas 删除空值

    pandas 删除空值 目的: 将该含有过多空值的行/列删除 DataFrame.dropna(axis=0, how=’any’, thresh=None, subset=Non…

    Python 2023年8月16日
    053
  • 数据分析-数据预处理

    数据分析-数据预处理 处理重复值 duplicated( )查找重复值 import pandas as pd a=pd.DataFrame(data=[[‘A’,19],[‘B’…

    Python 2023年8月7日
    060
  • win10python怎么安装pygame_windows10系统下安装pygame

    1.安装python,选择版本3.7.1 下载地址:https://www.python.org/downloads/windows/选择安装版本 2.安装pip 下载地址:htt…

    Python 2023年9月15日
    041
  • Pandas分类总结之:索引

    1.1 表的列索引 df[列名] ,返回值为 Series,当列名不包含空格,可用 df.列&#x540D…

    Python 2023年8月18日
    067
  • Scrapy 2.6 Selectors 数据选择器使用指南

    在使用Scrapy进行数据采集时,Selectors(数据选择器)是非常重要的一环,负责提取网页中的特定数据。 本文详细介绍了Scrapy 2.6版本中Selectors的使用和高…

    Python 2023年10月4日
    062
  • 整数规划Python

    整数规划 纯整数规划:所有决策变量都限定为整数 混合整数规划:仅一部分变量限定为整数 0-1整数规划:决策变量仅限于0或1 1.整数规划问题与求解 import cvxpy as …

    Python 2023年8月28日
    060
  • iloc[ ]函数(Pandas库)

    iloc[]函数,属于pandas库,全称为index location,即对数据进行位置索引,从而在数据表中 提取出相应的数据。 df.iloc[a,b],其中df是DataFr…

    Python 2023年8月16日
    045
  • Pandas学习笔记

    目录 一、groupby相关操作 * 1.1 groupby agg 条件 频率统计 apply相关操作 plot相关操作 * 1. 双轴图表 一、groupby相关操作 当 li…

    Python 2023年8月7日
    076
  • 谈谈我的「数字文具盒」 – 生产力工具(上)

    在完成了数字基建、运行平台的搭建后,迎来应用服务 – 生产力工具的搭建;生产力工具主要从公共服务、工具、程序开发三个方面来说。由于全文篇幅字数较多,故分为上下两篇分开阅…

    Python 2023年10月13日
    058
  • matplotlib学习笔记

    一、基础概念 了&…

    Python 2023年9月2日
    063
  • Python Flask – 实现本地文件的上传与下载

    场景: 点击上传文件按钮,选择需要上传的文件后上传 文件上传成功后,会将文件保存到指定目录下 限制上传文件的格式 在前端点击文件后下载 基于上述上传并保存到指定目录下的文件 上手 …

    Python 2023年8月3日
    079
  • Unity3D教程:游戏开发算法-动态规划

    经常会遇到复杂问题不能简单地分解成几个子问题,而会分解出一系列的子问题。简单地采用把大问题分解成子问题,并综合子问题的解导出大问题的解的方法,问题求解耗时会按问题规模呈幂级数增加。…

    Python 2023年10月7日
    034
  • python中pygame库的功能_python中pygame模块用法实例

    本文实例讲述了python中pygame模块用法,分享给大家供大家参考。具体方法如下: import pygame, sys from pygame.locals import *…

    Python 2023年9月20日
    074
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球