简体   繁体   English

安装熊猫:UnicodeDecodeError:'ascii'编解码器无法解码位置 72 中的字节 0xe2:序号不在范围内(128)

[英]Installing pandas: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)

I have some problem while installing pandas on Linux Server I'm trying to install it, it creates it own venv , my requirement files looks like this:我在 Linux 服务器上安装 pandas 时venv一些问题我正在尝试安装它,它创建了自己的venv ,我的需求文件如下所示:

Flask==0.10.1
pandas==0.16.2

Locally it is installed correctly but only on the server, I can't do it for some reasons that I can't understand.在本地它已正确安装,但仅在服务器上安装,由于某些我无法理解的原因,我无法执行此操作。

I tried t find a solution but I don't get what could be the problem?我试图找到解决方案,但我不明白可能是什么问题? Please help me!请帮我!

My errors looks like this我的错误看起来像这样

在此处输入图片说明

So:所以:

Command /var/www/jsonify-it/venv/bin/python -c "import setuptools;__file__='/var/www/jsonify-it/venv/build/pandas/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-B_NcK3-record/install-record.txt --single-version-externally-managed --install-headers /var/www/jsonify-it/venv/include/site/python2.7 failed with error code 1 in /var/www/jsonify-it/venv/build/pandas
Traceback (most recent call last):
  File "/var/www/jsonify-it/venv/bin/pip", line 9, in <module>
    load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
  File "/var/www/jsonify-it/venv/local/lib/python2.7/site-packages/pip/__init__.py", line 148, in main
    return command.main(args[1:], options)
  File "/var/www/jsonify-it/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 169, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
Installation complete.

I don't get what could be the problem?我不明白可能是什么问题? Please help!请帮忙!

UPDATE: Solution:更新:解决方案:

Finally, I found my problem: I did this:最后,我发现了我的问题:我这样做了:

sudo apt-get install g++

Then the solution (if you have no ability to increase memory on that machine) is to add swap file.那么解决方案(如果您无法增加该机器上的内存)是添加交换文件。

sudo dd if=/dev/zero of=/swapfile bs=1024 count=524288
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

new version of pip solve the problem.新版本的pip解决了这个问题。 Update pip will solve problem.更新 pip 将解决问题。 pip install --upgrade pip pip 安装 --upgrade pip

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置0中的字节0xe2:序号不在范围内(128) - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128) UnicodeDecodeError:“ascii”编解码器无法解码位置 13 中的字节 0xe2:序号不在范围内(128) - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 13: ordinal not in range(128) Python 3 UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置0中的字节0xe2:序数不在范围内(128) - Python 3 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128) UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置35的字节0xe2:序数不在范围内(128) - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 35: ordinal not in range(128) UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置4中的字节0xe2:序数不在范围内(128) - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128) UnicodeDecodeError:&#39;ascii&#39; 编解码器无法解码位置 14 中的字节 0xe2:在 GAE python 中序号不在范围内(128)? - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 14: ordinal not in range(128) in GAE python? Python UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置0的字节0xe2:序数不在范围内(128) - Python UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128) UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置139中的字节0xe2:序数不在范围内(128) - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 139: ordinal not in range(128) `pip install pandas`给出UnicodeDecodeError:&#39;ascii&#39;编解码器无法解码位置41的字节0xe2:序号不在范围内(128) - `pip install pandas` gives UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128) Python UnicodeDecodeError:&#39;ascii&#39;编解码器不能解码不在范围内的字节0xe2序数(128) - Python UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 ordinal not in range(128)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM