Installing Anaconda on Server

烂漫一生 提交于 2020-12-30 03:47:31

问题


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

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?


回答1:


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




回答2:


you can download anaconda using:wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh and install using: bash Anaconda3-5.1.0-Linux-x86_64.sh

After that just source the path of Anaconda in .bashrc file, it should work.

To access jupyter notebook, you can use ssh and run notebook in your browser on your host. Steps are mentioned in this link




回答3:


Yes you can install anaconda on your linux machine (Server) and manage the python environment. But if just need Jupyter hosted in a server, just install Jupyter only and start the service which will server Jupyter Notebook. Access Jupyter notebook using your browser on any other PC.

Make a google search that how to install anaconda on Linux machine (Centos/Ubuntu etc) After installation run following command

conda info

and then configure the Jupyter and run.

Simple way (Install Jupyter on a server): Install, Run, and Connect to Jupyter Notebook on a Remote Server



来源:https://stackoverflow.com/questions/54226763/installing-anaconda-on-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!