小编Mat*_*tan的帖子

Python读取带有希伯来语标题的csv

我试图用来dataset=pandas.read_csv('filename')制作一个框架。但不知何故我不能这样做,因为其中一个列标题是用希伯来语编写的。

我查了一下,DataFrame 有可能有一个希伯来语词作为列标题。 dataset.columns = ['????', 'b','c','d','e']但我想从包含希伯来语单词的 csv 中导入数据本身,我不能。

我收到此错误UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf9 in position 0: invalid start byte

如何使用列标题将数据集导入到 datadrame?

python csv utf-8 hebrew pandas

5
推荐指数
2
解决办法
4440
查看次数

在 Node js (node-gyp) 中使用 npm install 安装 argon2 时出错

我尝试使用在节点js上安装argon 2 npm install argon2 --save。我认为 python (不知道为什么)或 node-gyp 有问题。

PS C:\angular\backend> npm install argon2 --save

> argon2@0.21.0 install C:\angular\backend\node_modules\argon2
> node-gyp rebuild


C:\angular\backend\node_modules\argon2>if not defined npm_config_node_gyp (node "C:\Users\matan\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\matan\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\matan\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid …
Run Code Online (Sandbox Code Playgroud)

python python-2.x python-3.x npm node-gyp

5
推荐指数
1
解决办法
5247
查看次数

无法将 facebook api 导入 python 代码

我想在 python 上使用图形 API,这样我就可以对帖子进行分析。到目前为止,我尝试导入库:

import facebook
Run Code Online (Sandbox Code Playgroud)

但我得到了错误

import facebook
  File "C:\Users\matan\Desktop\Machine Learning Forex\facebook.py", line 11
    pip install -e git+https://github.com/mobolic/facebook-sdk.git#egg=facebook-sdk
              ^
SyntaxError: invalid syntax

  File "C:\Users\matan\Desktop\Machine Learning Forex\facebook.py", line 11
    pip install -e git+https://github.com/mobolic/facebook-sdk.git#egg=facebook-sdk
              ^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)

我怎样才能导入这个库?

python facebook-graph-api

1
推荐指数
1
解决办法
7830
查看次数