第一步

安装 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. mysql双机热备的实现

    转:http://blog.csdn.net/qq394829044/article/details/53203645 Mysql数据库没有增量备份的机制,当数据量太大的时候备份是一个很大的问题.还好 ...

  2. tornado+jsonrpc

    rpc:远程过程调用(A服务调用B服务的一个方法或函数) tornado中jsonrpc的使用 import json import tornado.httpserver import tornado ...

  3. 自动生成 java 测试 mock 对象框架 DataFactory-01-入门使用教程

    项目简介 Data-Factory 用于根据对象,随机自动生成初始化信息,避免了手动创建对象的繁琐,便于测试. 特性 8 大基本类型的支持 String.Date.金额,日期等常见类型的支持 java ...

  4. 使用Python+turtle绘制同心圆

    问题描述:数学定义上是指:同一平面上同一圆心而半径不同的圆.简单来说就是:圆心相同半径不同的圆,如果几个圆的圆心是同一点,那么这几个圆就叫做同心圆. 本文使用turtle绘制一个类似“箭靶”的同心圆. ...

  5. 显示开机信息-dmesg

    显示开机信息-dmesg kernel会将开机信息存储在ring buffer中.您若是开机时来不及查看信息,可利用dmesg来查看.开机信息亦保存在/var/log目录中,名称为dmesg的文件里. ...

  6. Disconnected from the target VM, address: '127.0.0.1:57178', transport: 'socket'

    idea 执行测试单元debug时控制台出现:Disconnected from the target VM, address: '127.0.0.1:57178', transport: 'sock ...

  7. 75.纯 CSS 创作一支摇曳着烛光的蜡烛

    原文地址:https://segmentfault.com/a/1190000015580809 学习后效果地址:https://scrimba.com/c/c8PQ3PTB 感想:CSS 真强大! ...

  8. 稀疏矩阵 part 2

    ▶ 各种稀疏矩阵数据结构之间的转化 ● MAT ←→ CSR CSR * MATToCSR(const MAT *in) // MAT 转 CSR { checkNULL(in); CSR * out ...

  9. 转:强制关闭.net程序

    /// <summary> /// 运行DOS命令 /// DOS关闭进程命令(ntsd -c q -p PID )PID为进程的ID /// </summary> /// & ...

  10. mysql登录1045错误时 修改登录密码

    1.进入 mysql 的 bin 目录下,打开 cmd ,关闭 mysql 数据库. 2.输入 mysqld --skip-grant-tables 回车. 保持窗口不要更改不要关闭 (--skip- ...