问题描述
我用于python开发的远程服务器最近迁移到Ubuntu 14.04,它破坏了我的numpy和scipy安装.我没有root用户访问权限,我尝试的所有操作均导致失败.到目前为止,我有:
A remote server that I used for python development recently migrated to Ubuntu 14.04 and it has broken my numpy and scipy installation. I do not have root access and everything I have tried has resulted in failure. So far I have:
1)尝试从使用python系统版本构建的源安装numpy.这给出了PyUnicodeUCS2_FromUnicode错误,我相信这是因为系统版本使用ucs4.由于我没有root访问权限,因此我不知道对此是否可以做任何事情.
1) Tried to install numpy from source built with the system version of python. This gives a PyUnicodeUCS2_FromUnicode error which I believe is because the system version uses ucs4. As I do not have root access I do not know if there is anything I can do about this.
2)尝试使用pip安装numpy.这给出了一条错误消息,提示它找不到python-dev中包含的Python.h头文件.同样,我没有root访问权限,因此无法安装python-dev.
2) Tried to install numpy using pip. This gives an error saying that it cannot find the Python.h header file that is included in python-dev. Again, I have no root access so cannot install python-dev.
3)尝试创建虚拟环境并安装新版本的python.最初,我收到一个httpsrequest导入错误,这意味着我无法使用pip,但能够从源代码安装.但是,当我随后安装scipy并尝试导入模块时,出现了一个错误,即找不到libgfortran库.
3) Tried to create a virtual environment and install a new version of python. Initially I got a httpsrequest import error which meant I couldn't use pip but I was able to install from source. However when I then installed scipy and tried to import a module, I got the error that a libgfortran library was not found.
我已经花了最后一天试图找到解决方案,但是我尝试的所有操作似乎都在某个地方遇到错误.我也不想在我的主目录中安装太多东西(即依赖项)来使它工作,因为我只有有限的空间.关于如何进行的任何想法?
I've spent the last day trying to find a solution to this but everything I try seems to encounter an error somewhere. I also don't want to have to install to much stuff (i.e. dependencies) in my home directory to get this to work as I only have a limited amount of space. Any ideas on how I could proceed?
推荐答案
您是否考虑过使用多合一"软件包进行Python科学计算,例如
Have you considered using an 'all-in-one' package for scientific computing with Python, such as
- Canopy
- Anaconda
- Miniconda
这篇关于Ubuntu 14.04没有根访问权限安装Numpy和Scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!