我是个新手,很抱歉。在
背景:我目前正在使用A2hosting作为我的web服务器。我在web服务器上有python(显然),我用它通过cronjob动态更新我的网站。现在,我想用Python模块matplotlib制作素材图并将它们添加到我的网站中。我目前在web服务器上没有这个模块,或者至少我得到了一个错误:没有模块存在。在
问题:那么,当我将SSH添加到a2托管web服务器中时,如何添加Python模块?我试着用sudo apt get,但没用。在
我的错误消息: 在
roy123@reichwein.net [~]# pip install numpy
Downloading/unpacking numpy
Downloading numpy-1.8.0.tar.gz (3.8Mb): 3.8Mb downloaded
Running setup.py egg_info for package numpy
Traceback (most recent call last):
File "<string>", line 14, in ?
File "/home/roy123/build/numpy/setup.py", line 16
from __future__ import division, print_function
SyntaxError: future feature print_function is not defined
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in ?
File "/home/roy123/build/numpy/setup.py", line 16
from __future__ import division, print_function
SyntaxError: future feature print_function is not defined
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/roy123/build/numpy
Storing complete log in /home/roy123/.pip/pip.log
谢谢!在
目前没有回答
相关问题 更多 >
编程相关推荐