第一步

安装 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. 获取geometry边界范围的示例代码

    根据sqlserver geometry数据定义获取空间类型边界范围 --获取指定街道边界的xy最大最小值 ) '--街道编码 create table #temp_point(id int iden ...

  2. Windows和MacOS的比较——不断完善和补充,欢迎吐槽

    1. 鼠标滚轮的方向不一样,Windows上滚轮朝下,页面滚动条也会朝下.而Mac上则相反. 2. Windows上有Home和End键,经常可以Ctrl+Home,Ctrl+End,Ctrl+Shi ...

  3. Spark RDD 操作

    1. Spark RDD 创建操作 1.1 数据集合   parallelize 可以创建一个能够并行操作的RDD.其函数定义如下: ) scala> sc.defaultParallelism ...

  4. 树莓派做下载服务器 aria2 篇

    一开始要运行一下配置,扩大树莓派的根目录的空间,不然所有软件装完之后空间会只剩几百兆. sudo raspi-config 扩展根目录空间, 开启 SSH ,修改 pi 密码. 另外要提一下,树莓派默 ...

  5. SQL JOIN 中 on 与 where 的区别

    left join : 左连接,返回左表中所有的记录以及右表中连接字段相等的记录. right join : 右连接,返回右表中所有的记录以及左表中连接字段相等的记录. inner join : 内连 ...

  6. 一文搞清到底什么是 .NET?

    现在各种 .NET 满天飞,别说新手了,连我这样的老手都差点被绕进去.到底什么是 .NET 呢?通俗易懂,什么是.NET?什么是.NET Framework?什么是.NET Core? 这篇文章好长呀 ...

  7. c#经典三层框架中的SqlHelper帮助类

    using System; using System.Collections.Generic; using System.Configuration; using System.Data; using ...

  8. RobotFramework - AppiumLibrary 之关键字Open Application使用

  9. Error:(72) error: unknown element <user-permission> found.

    android studio升级之后会出现这样一个问题,Error:(72) error: unknown element <user-permission> found. 解决方法是在项 ...

  10. pyqt5 -—-布局管理

    绝对布局 例如: 我们使用move()方法定位了每一个元素,使用x.y坐标.x.y坐标的原点是程序的左上角. lbl1 = QLabel('Zetcode', self) lbl1.move(15, ...