GVKun编程网logo

结合使用AWS Glue Python和NumPy和Pandas Python软件包(aws lambda python)

11

本文将分享结合使用AWSGluePython和NumPy和PandasPython软件包的详细内容,并且还将对awslambdapython进行详尽解释,此外,我们还将为大家带来关于AnacondaP

本文将分享结合使用AWS Glue Python和NumPy和Pandas Python软件包的详细内容,并且还将对aws lambda python进行详尽解释,此外,我们还将为大家带来关于Anaconda Python 3.6 – pythonw和python应该是等价的吗?、Python - numpy 和 pandas、Python 3.4和2.7:无法为python 3.4安装numpy软件包、Python Basic - Numpy & Pandas的相关知识,希望对你有所帮助。

本文目录一览:

结合使用AWS Glue Python和NumPy和Pandas Python软件包(aws lambda python)

结合使用AWS Glue Python和NumPy和Pandas Python软件包(aws lambda python)

在AWS上名为Glue的新ETL工具中使用NumPy和Pandas等软件包的最简单方法是什么?我想在使用NumPy和Pandas的AWS
Glue中运行的Python中有一个完整的脚本。

答案1

小编典典

我认为目前的答案是你 不能 。根据AWS
Glue文档:

只能使用纯Python库。尚不支持依赖C扩展的库,例如pandas Python数据分析库。

但是,即使我尝试在S3中包括普通的python编写的库,由于某些HDFS权限问题,Glue作业也失败了。如果您找到解决此问题的方法,请也告诉我。

Anaconda Python 3.6 – pythonw和python应该是等价的吗?

Anaconda Python 3.6 – pythonw和python应该是等价的吗?

根据 Python 3文档,python和pythonw应该等同于运行GUI脚本 as of 3.6

With older versions of Python,there is one Mac OS X quirk that you need to be aware of: programs that talk to the Aqua window manager (in other words,anything that has a GUI) need to be run in a special way. Use pythonw instead of python to start such scripts.

With Python 3.6,you can use either python or pythonw.

但是,我刚刚使用Python 3.6安装了Anaconda,如果我尝试使用python而不是pythonw运行我的wxPython GUI,我仍然会得到非框架构建错误:

This program needs access to the screen. Please run with a
Framework build of python,and only when you are logged in
on the main display of your Mac.

这里发生了什么?为什么这个错误仍然存​​在?

我使用的Python版本是:

Python 3.6.0 :: Anaconda 4.3.1 (x86_64)

解决方法

答案可以在这里找到: How to use a framework build of Python with Anaconda

简而言之,使用命令

conda install python.app

和pythonw将被安装.

Python - numpy 和 pandas

Python - numpy 和 pandas

 

一、numpy小结

 

 

 

              

 

 

二、pandas

2.1 为什么要学习pandans

 

Python 3.4和2.7:无法为python 3.4安装numpy软件包

Python 3.4和2.7:无法为python 3.4安装numpy软件包

我正在使用Ubuntu 12.04,并希望将python 3.4与python 2.7并排使用。

python 3.4的安装正常。但是,我无法为python 3安装numpy软件包(因此,我无法安装scipy,pandas等)。

使用

 sudo pip3 install numpy

吐出以下错误:

File "numpy/core/setup.py", line 289, in check_types"Cannot compile ''Python.h''. Perhaps you need to "\SystemError: Cannot compile ''Python.h''. Perhaps you need to install python-dev|python-devel.

顺便说一句,我已经安装了python-dev。

此外,通过安装numpy

 sudo apt-get install python-numpy

由于我已经为python 2.7安装了numpy并且安装程序响应numpy已经是最新的,因此也不起作用。

我能做什么?谢谢!

答案1

小编典典

您尚未安装Python 3 开发包 。安装python3.4-dev

apt-get install python3.4-dev

主程序包从不包含开发标头。Debian(以及扩展名为Ubuntu)的软件包政策是将它们放入单独的-dev软件包中。numpy但是,要安装,您需要这些文件才能编译扩展名。

Python Basic - Numpy & Pandas

Python Basic - Numpy & Pandas

s

关于结合使用AWS Glue Python和NumPy和Pandas Python软件包aws lambda python的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于Anaconda Python 3.6 – pythonw和python应该是等价的吗?、Python - numpy 和 pandas、Python 3.4和2.7:无法为python 3.4安装numpy软件包、Python Basic - Numpy & Pandas等相关内容,可以在本站寻找。

本文标签: