简体   繁体   中英

How to install Python 2.7.10 installation without root/sudo permission and internet connection?

I have been trying to install Python 2.7.10 along with more than 15 supporting packages in the following environment.

LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Red Hat Enterprise Linux Server release 6.4 (Santiago)

But I don't have root root, sudo permission. I don't even have internet connection on that. I can only copy the package files from Windows to Linux machine. And then I have to install everything.

Can anyone help me complete this task?

Use miniconda to install a standalone python. Then create environments as needed using the miniconda tool (conda).

See this answer for example usage.

If you already have a python installed (maybe the system python), you can skip downloading miniconda and use virtualenv to create standalone environments instead.

You can then use pip to install the packages that you need.

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