在服务器上安装Anaconda [英] Installing Anaconda on Server

查看:350
本文介绍了在服务器上安装Anaconda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台安装了Python3的Unix服务器.我从Mac SSH到服务器.

I have a Unix server where I have Python3 installed. I ssh to the server from my mac.

我想知道是否可以在服务器上安装Anaconda和Jupyter(Anaconda随附),这样我就可以在服务器终端上拉起Jupyter并在服务器上运行的jupyter上运行代码.

I was wondering if it possible to install Anaconda and Jupyter (will come with Anaconda) on the server so that I can just pull up Jupyter on the server terminal and run codes on jupyter running on the server.

有可能吗?如果是的话,有人可以引导我找到正确的链接吗?

Is it possible? And if yes, could someone guide me to the right link?

推荐答案

在远程服务器上的终端中:

in a terminal on your remote server:

#download anaconda (change version if you want)
wget https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh

# run the installer
bash Anaconda3-5.1.0-Linux-x86-64.sh

# so changes in your path take place in you current session:
source ~/.bashrc

#To run a remote notebook, replace XXXX with your choice of four numbers like 9191
jupyter notebook --no-browser --port=XXXX
#copy the url that you get as a result

然后在您的本地计算机上,打开一个终端并输入:

Then in your local machine, open up a terminal and write:

#XXXX is the port you specified in the previous step, YYYY is a local port, for example 9999 to keep it simple
ssh -f [USER]@[SERVER] -L YYYY:localhost:XXXX -N

然后复制上一步中的网址,将其粘贴到浏览器中,因为您使用了相同的端口,所以无需更改网址上的任何内容

Then copy the url from the previous step, paste it in a browser, since you used the same port, you don't have to change anything on the url

这篇关于在服务器上安装Anaconda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆