简体   繁体   English

无法在服务器上安装tensorflow

[英]not able to install tensorflow on server

I am trying to use tensorflow on my college server, as some of the things that I have written are too heavy for my laptop. 我试图在我的大学服务器上使用tensorflow,因为我写的一些东西对我的笔记本电脑来说太重了。 So I don't have sudo privileges. 所以我没有sudo权限。 Below is what I unsuccessfully tried. 以下是我未成功尝试的内容。

I am able to install tensorflow by pip install --user <url> . 我可以通过pip install --user <url>安装tensorflow。 But when I import tensorflow I get the error glibc 2.17 not found . 但是当我导入tensorflow时,我得到错误glibc 2.17 not found

I found this link which solved the exact same problem but when I run 我发现这个链接解决了完全相同的问题,但是当我运行时

virtualenv --system-site-packages ~/tensorflow

I get this error: 我收到此错误:

ImportError: No module named pkg_resources

For resolving this I tried: 为了解决这个问题,我试过:

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

And then I get following error: 然后我得到以下错误:

[Errno 13] Permission denied: '/opt/anaconda/lib/python2.7/site-packages/test-easy-install-10463.write-test'

And I don't have sudo access so I can't use sudo with above command. 而且我没有sudo访问权限,所以我不能在上面的命令中使用sudo。

For installing virtualenv I used: 为了安装virtualenv我用过:

curl -sL https://raw.githubusercontent.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | $SHELL

I think that the problem is with virtualenv setup but I tried removing it and installing virtualenv by: 我认为问题在于virtualenv设置,但我尝试删除它并通过以下方式安装virtualenv:

pip install --user virtualenv

But this fails and I get: 但这失败了,我得到:

InsecurePlatformWarning Could not find a version that satisfies the requirement vitualenv (from versions: ) No matching distribution found for vitualenv

I have looked at many ( 1 , 2 ) SO answers dealing with this problem but none work for me. 我已经看过很多( 12 ),所以处理这个问题,但我没有工作的答案。 I get stuck at some other error. 我遇到了其他一些错误。

I am now stuck in a loop of errors without sudo privilege. 我现在陷入了没有sudo特权的错误循环中。

So, my question is that do I necessarily have to install virtualenv or can my problem of installing a working tensorflow be solved much simply. 所以,我的问题是我是否必须安装virtualenv或者我的安装工作张量流的问题可以简单地解决。

It is a linux server and default python version is 2.6. 它是一个linux服务器,默认的python版本是2.6。 So, I had to install 2.7 separately for my use. 因此,我必须单独安装2.7以供我使用。

Try building from source instead of using the precompiled binary version. 尝试从源代码构建而不是使用预编译的二进制版本。 That way you won't have to worry about the glibc incompatibility with the installed system one. 这样您就不必担心glibc与已安装的系统不兼容。

@Pukki you may be able to have a professor request the system administrator to install it. @Pukki您可以让教授请求系统管理员安装它。 Then everyone on the system could use it. 然后系统上的每个人都可以使用它。

I followed the instructions from this page and it resolved my issue. 我按照本页的说明解决了我的问题。 You need the --upgrade URL parameter 您需要--upgrade URL参数

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM