第一步

安装 Anaconda3-2019.03-Windows-x86_64.exe

下载地址:https://repo.anaconda.com/archive/Anaconda3-2019.03-Windows-x86_64.exe

正常安装就可以

第二步:验证python是否安装成功

C:\Users\Think>python

 出现版本信息并且进入python就证明phthon环境配置完成

Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation

Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

第三步:安装所需要的插件 pip install nipyapi

C:\Users\Think>pip install nipyapi

  

Collecting nipyapi
Downloading https://files.pythonhosted.org/packages/80/97/bfc186b66345a79cbfca3ac76b1ef7d113a914b95c0360533d18b3d2865a/nipyapi-0.12.1-py2.py3-none-any.whl (781kB)
100% |████████████████████████████████| 788kB 54kB/s
Collecting docker>=2.5.1 (from nipyapi)
Downloading https://files.pythonhosted.org/packages/48/68/c3afca1a5aa8d2997ec3b8ee822a4d752cf85907b321f07ea86888545152/docker-3.7.2-py2.py3-none-any.whl (134kB)
100% |████████████████████████████████| 143kB 71kB/s
Collecting ruamel.yaml==0.15.87 (from nipyapi)
Downloading https://files.pythonhosted.org/packages/17/4c/6bcafad9243cea21674a2f214151043df34734513bb74594ac3407ece072/ruamel.yaml-0.15.87-cp37-cp37m-win_amd64.whl (219kB)
100% |████████████████████████████████| 225kB 34kB/s
Requirement already satisfied: setuptools>=38.5 in c:\programdata\anaconda3\lib\site-packages (from nipyapi) (40.8.0)
Requirement already satisfied: lxml>=4.1.1 in c:\programdata\anaconda3\lib\site-packages (from nipyapi) (4.3.2)
Requirement already satisfied: packaging>=17.1 in c:\programdata\anaconda3\lib\site-packages (from nipyapi) (19.0)
Collecting deepdiff<4.0,>=3.3.0 (from nipyapi)
Downloading https://files.pythonhosted.org/packages/50/0b/87df7f45ce7dc02aa576458ffdf146f0b350d541fce373a91e8a81751deb/deepdiff-3.3.0-py3-none-any.whl
Requirement already satisfied: six>=1.11.0 in c:\programdata\anaconda3\lib\site-packages (from nipyapi) (1.12.0)
Requirement already satisfied: requests[security]>=2.18 in c:\programdata\anaconda3\lib\site-packages (from nipyapi) (2.21.0)
Collecting docker-pycreds>=0.4.0 (from docker>=2.5.1->nipyapi)
Downloading https://files.pythonhosted.org/packages/f5/e8/f6bd1eee09314e7e6dee49cbe2c5e22314ccdb38db16c9fc72d2fa80d054/docker_pycreds-0.4.0-py2.py3-none-any.whl
Collecting websocket-client>=0.32.0 (from docker>=2.5.1->nipyapi)
Downloading https://files.pythonhosted.org/packages/29/19/44753eab1fdb50770ac69605527e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-none-any.whl (200kB)
100% |████████████████████████████████| 204kB 45kB/s
Collecting pypiwin32==223; sys_platform == "win32" and python_version >= "3.6" (from docker>=2.5.1->nipyapi)
Downloading https://files.pythonhosted.org/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl
Requirement already satisfied: pyparsing>=2.0.2 in c:\programdata\anaconda3\lib\site-packages (from packaging>=17.1->nipyapi) (2.3.1)
Collecting jsonpickle (from deepdiff<4.0,>=3.3.0->nipyapi)
Downloading https://files.pythonhosted.org/packages/dc/12/8c44eabb501e2bc0aec0dd152b328074d98a50968d3a02be28f6037f0c6a/jsonpickle-1.1-py2.py3-none-any.whl
Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests[security]>=2.18->nipyapi) (1.24.1)
Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests[security]>=2.18->nipyapi) (2019.3.9)
Requirement already satisfied: idna<2.9,>=2.5 in c:\programdata\anaconda3\lib\site-packages (from requests[security]>=2.18->nipyapi) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests[security]>=2.18->nipyapi) (3.0.4)
Requirement already satisfied: cryptography>=1.3.4; extra == "security" in c:\programdata\anaconda3\lib\site-packages (from requests[security]>=2.18->nipyapi) (2.6.1)
Requirement already satisfied: pyOpenSSL>=0.14; extra == "security" in c:\programdata\anaconda3\lib\site-packages (from requests[security]>=2.18->nipyapi) (19.0.0)
Requirement already satisfied: pywin32>=223 in c:\programdata\anaconda3\lib\site-packages (from pypiwin32==223; sys_platform == "win32" and python_version >= "3.6"->docker>=2.5.1->nipyapi) (223)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\programdata\anaconda3\lib\site-packages (from cryptography>=1.3.4; extra == "security"->requests[security]>=2.18->nipyapi) (1.12.2)
Requirement already satisfied: asn1crypto>=0.21.0 in c:\programdata\anaconda3\lib\site-packages (from cryptography>=1.3.4; extra == "security"->requests[security]>=2.18->nipyapi) (0.24.0)
Requirement already satisfied: pycparser in c:\programdata\anaconda3\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.3.4; extra == "security"->requests[security]>=2.18->nipyapi) (2.19)
Installing collected packages: docker-pycreds, websocket-client, pypiwin32, docker, ruamel.yaml, jsonpickle, deepdiff, nipyapi
显示这行就证明插件安装完毕      Successfully installed deepdiff-3.3.0 docker-3.7.2 docker-pycreds-0.4.0 jsonpickle-1.1 nipyapi-0.12.1 pypiwin32-223 ruamel.yaml-0.15.87 websocket-client-0.56.0

第四步:安装mysql

C:\Users\Think>pip install mysql

  

Collecting mysql
Downloading https://files.pythonhosted.org/packages/bf/5f/b574ac9f70811df0540e403309f349a8b9fa1a25d3653824c32e52cc1f28/mysql-0.0.2.tar.gz
Collecting mysqlclient (from mysql)
Downloading https://files.pythonhosted.org/packages/e9/30/b40f39fcc6c39038cad3263b3b4280133fb033e0565fe4127d507aa011fe/mysqlclient-1.4.2.post1-cp37-cp37m-win_amd64.whl (178kB)
100% |████████████████████████████████| 184kB 68kB/s
Building wheels for collected packages: mysql
Building wheel for mysql (setup.py) ... done
Stored in directory: C:\Users\Think\AppData\Local\pip\Cache\wheels\4f\10\3f\4930effd0320769375b5094e279cb0e4a4c10a7e5811b58f8a
Successfully built mysql
Installing collected packages: mysqlclient, mysql
Successfully installed mysql-0.0.2 mysqlclient-1.4.2.post1

出现 Successfully installed mysql-0.0.2 mysqlclient-1.4.2.post1证明已经安装成功

第五步:验证安装配置mysql

我下载的是:mysql-8.0.15-winx64

可以进入官网去下载   https://dev.mysql.com/downloads/mysql/

先进行mysql的具体配置再进行下面的步骤: https://www.cnblogs.com/elfin/p/9429877.html  
1.进入到mysql bin目录

cd C:\mysql\bin

C:\mysql\bin>

  

 

2.启动mysql服务

C:\mysql\bin>net start mysql

 

请求的服务已经启动。

请键入 NET HELPMSG 2182 以获得更多的帮助。

3.获取root权限登录

语法: mysql -h 服务器名 -u 登录账户名 -p 密码

C:\mysql\bin>mysql -u root -p

Enter password: ****

  

 

  

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 8.0.15 MySQL Community Server - GPL

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

4.进入 C:\Users\Think\Desktop\nifi数据采集\nifi_manage_201904> 中按住shift键进入命令行窗口

运行这条更新命令
python nifi_manage.py --config-table mr_ser_info --vendor 中兴 --group-name ZTE_MR --update

Traceback (most recent call last):
File "nifi_manage.py", line 3, in <module>
import mysql
ModuleNotFoundError: No module named 'mysql'

5.如果报No module named 'mysql'这个错 则运行 pip install mysql-connector 安装mysql导包来解决这个问题

6.然后再次运行 python nifi_manage.py --config-table mr_ser_info --vendor 中兴 --group-name ZTE_MR --update

没出来东西正常结束则说明已经成功

使用nifi采集数据要配置的环境的更多相关文章

  1. 大数据之虚拟机配置和环境准备及hadoop集群搭建

    一.VMnet1和VMnet8路由器 VMware-workstation软件选择默认安装时,会自动创建VMnet1和VMnet8路由器设备.(安装失败使用CCleaner清理vm软件) VMnet1 ...

  2. OCM_第十三天课程:Section6 —》数据库性能调优 _结果缓存 /多列数据信息采集统计/采集数据信息保持游标有效

    注:本文为原著(其内容来自 腾科教育培训课堂).阅读本文注意事项如下: 1:所有文章的转载请标注本文出处. 2:本文非本人不得用于商业用途.违者将承当相应法律责任. 3:该系列文章目录列表: 一:&l ...

  3. JAVAEE——Lucene基础:什么是全文检索、Lucene实现全文检索的流程、配置开发环境、索引库创建与管理

    1. 学习计划 第一天:Lucene的基础知识 1.案例分析:什么是全文检索,如何实现全文检索 2.Lucene实现全文检索的流程 a) 创建索引 b) 查询索引 3.配置开发环境 4.创建索引库 5 ...

  4. 服务追踪数据使用 RabbitMQ 进行采集 + 数据存储使用 Elasticsearch + 数据展示使用 Kibana

    服务追踪数据使用 RabbitMQ 进行采集 + 数据存储使用 Elasticsearch + 数据展示使用 Kibana https://www.cnblogs.com/xishuai/p/elk- ...

  5. Oracle问题分析采集数据的方法

    1.背景: 运维人员或多或少都会遇到分析问题.分析故障的时候,往往在碰到一些棘手的问题事,我们都会往更深层次的专家进行求助.不管是二线专家还是Oracle全球服务工程师(后文称GCS工程师),往往都会 ...

  6. 这么多房子,哪一间是我的小窝?python采集数据并做数据可视化~

    前言 嗨喽,大家好呀!这里是小熊猫 环境使用: (https://jq.qq.com/?_wv=1027&k=ONMKhFSZ) Python 3.8 Pycharm 模块使用: (https ...

  7. IIS8 使用FastCGI配置PHP环境支持 过程详解

    平时帮朋友们配置过一些PHP环境的服务器,但是一直使用的都是Apache HTTP+PHP,今天呢,我吧IIS+PHP配置方式给大家发一下下~呵呵. 在这里,我使用的是FastCGI模块映射的方式配置 ...

  8. win7系统下如何配置php-Apache-mysql环境

    如何在win7系统下配置php环境呢,php+Apache+mysql都是在配置过程中必不可少的元素,php负责解析php代码,apache负责服务器端而mysql是数据交互的中转站. 那么如何将ph ...

  9. Windows Server 2008R2配置MySQL Cluster并将管理节点和数据节点配置成windows服务

    说明:将mysql的管理节点和数据节点配置成windows服务是为了防止有人手误关闭管理节点或数据节点的dos命令窗口,管理节点或数据节点的命令窗口误关闭可能会造成mysql某台或某几台mysql不能 ...

随机推荐

  1. 使用aliyun cli工具快速创建云主机

    参考文档: https://help.aliyun.com/document_detail/25484.html?spm=a2c4g.11186623.3.2.b57vQp 步骤 创建AccessID ...

  2. .net core2.2

    GetCurrentDirectory returns the worker directory of the process started by IIS rather than the app's ...

  3. 架构师技能图谱 V1.2

    系统架构能力 基本理论 扩展性设计 可用性设计 可靠性设计 一致性设计 负载均衡设计 过载保护设计 灾难恢复和备份 协议设计 二进制协议 文本协议 接入层架构设计 DNS 轮询 动静态分离 静态化 反 ...

  4. rest_framework目录

    一  REST API规范 二  rest framework框架的基本使用

  5. sql获取时间段内的所有日期

    ,'2015-01-01 00:00:00') h INTO vinson_h DELETE vinson_h DECLARE @h int SELECT @h=DATEDIFF(HOUR,'2015 ...

  6. Python的迭代器和生成器

    列表生成式 列表生成式可以快速创建list. >>> [x * x for x in range(1, 11) if x % 2 == 0] [4, 16, 36, 64, 100] ...

  7. windows文件名格式的中文+数字混合字符串排序

    记录一下 [DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] private static extern int StrCm ...

  8. hml页面转化成图片

    <!DOCTYPE html><html><head><meta charset="utf-8"><meta name=&qu ...

  9. Cookie在前端读不到 多半是因为Cookie在服务器端的设置是HttpOnly 意味着只能在后台操作Cookie

    比如Shiro框架的 RememberMe Cookie 是不允许Js进行读写的 只能在服务器端通过同一个域的请求获得 import com.constantine.forum.exception.F ...

  10. Eclipse在开发JavaEE时怎么显示隐藏的WebContent和build文件夹

    在使用eclipse是WebContent和build文件被隐藏起来时解决方法: 1.选择eclipse中的下三角选择Select Working Set: 2.将Java Main Sources选 ...