简体   繁体   中英

Run a python script on a remote machine without sudo previlage

I have a python script called ergo.py on my local machine and I want to run it on a remote machine but I have a couple of issues:

  1. The remote machine has python 2.x installed on it but my code is written in python 3.x

  2. The remote machine doesn't have python modules like numpy or matplotlib.

  3. I only have ssh access to remote machine and I don't have sudo privilege or any root access

  4. I even don't have sudo privilege or any root access on my local machine but I have python 3.6.3 and anaconda packages installed on it which make me able to write my codes with Pycharm IDE.

The remote machine and my local system both have Linux Red hat 7.x operating systems.

What is my best way to run my codes on the remote machine. I tried to freeze my code using pyinstaller, bbfreeze and cx_freeze but I didn't succeed, each time becasue of a specific error so I quitted this option.

I found a very good solution on this website https://research.computing.yale.edu/support/hpc/user-guide/local-anaconda-installation

Just sweep the Anaconda version to the desired version in the instruction

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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