[英]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.