linux下无root 安装activepython到指定目录
linux下无root 安装activepython
1、下载ActivePython-2.7.8.10-linux-x86_64.tar.gz 包
2、进入非root用户,如bdc用户,解压
[bdc@svr001 python]$ tar -zxvf ActivePython-2.7.8.10-linux-x86_64.tar.gz
解压得到ActivePython-2.7.8.10-linux-x86_64 目录
3、进入ActivePython-2.7.8.10-linux-x86_64目录
[bdc@svr001 python]$ cd ActivePython-2.7.8.10-linux-x86_64
[bdc@svr001
ActivePython-2.7.8.10-linux-x86_64]$ ll
总用量 52
drwxrwxr-x. 7 bdc bdc
4096 7月 3 2014 INSTALLDIR
-rw-rw-r--. 1 bdc bdc 14306 7月 3 2014
_install.py
-rwxr-xr-x. 1 bdc bdc 373 7月 3 2014 install.sh
-rwxrwxr-x.
1 bdc bdc 16060 7月 3 2014 sh2.py
-rw-rw-r--. 1 bdc bdc 10229 1月 24 13:18
sh2.pyc
4、查看_install.py 文件
[bdc@svr001 ActivePython-2.7.8.10-linux-x86_64]$ more
_install.py
#!/usr/bin/env python
# Copyright (c) 2003-2014 ActiveState
Software Inc.#
#********************************************************************
#
WARNING: Do not run this script directly. Run the main
"./install.sh"
# which will launch this script
properly.
#********************************************************************"""
./install.sh - ActivePython install
scriptUsage:
./install.sh
[options...]General Options:
-h, --help print
this help and exit
-v, --verbose verbose output-I, --install-dir <dir> specify install
directoryWhen called without arguments this script will
interactively install
ActivePython. If the install dir is specified then
ActivePython will
be installed without
interaction.
5、用 -I 或--install-dir 参数可安装到指定目录
[bdc@svr001 ActivePython-2.7.8.10-linux-x86_64]$ ./install.sh -I
/opt/aspire/product/bdc/python/python27.8.10
Installing ActivePython to
'/opt/aspire/product/bdc/python/python27.8.10'...
Relocating dir-dependent
files...
Pre-compiling .py files in the standard library...ActivePython has been successfully installed to:
/opt/aspire/product/bdc/python/python27.8.10
You can add the
following to your .bashrc (or equivalent)
to put ActivePython on your
PATH:export PATH=/opt/aspire/product/bdc/python/python27.8.10/bin:$PATH
The documentation is available here:
/opt/aspire/product/bdc/python/python27.8.10/doc/python2.7/index.html
web: http://docs.activestate.com/activepython/2.7Please send us any feedback you might have or log bugs here:
activepython-feedback@ActiveState.com
http://bugs.activestate.com/ActivePython/Thank you for using ActivePython.
6、加入环境变量
将以下语句加入到bdc用户的 .bash_prorfile环境变量中,并执行..bash_prorfile生效。
export
PATH=/opt/aspire/product/bdc/python/python27.8.10/bin:$PATH
linux下无root 安装activepython到指定目录的更多相关文章
- linux下无root源码安装软件
先进入源码文件夹下指定安装路径 ./configure --prefix=/public/home/ztu/usr/samtools 编译 make 安装 make install 写入环境变量 vi ...
- Linux下非root用户如何安装软件
Linux下非root用户如何安装软件 从windows转移到Linux的用户最开始总会有各种不适,因为这种不适最终放弃linux的不在少数.对于这类人只能说可惜,还没有领略到linux的美好就过早放 ...
- [转载]Linux下非root用户如何安装软件
[转载]Linux下非root用户如何安装软件 来源:https://tlanyan.me/work-with-linux-without-root-permission/ 这是本人遇到的实际问题,之 ...
- linux下subversion server安装手册
linux下subversion server安装手册 安装基于的Linux版本为:Red Hat Enterprise Linux Server release 6.3. 一 准备需要的安装包. ( ...
- 细说Linux下软件包的安装与管理
一 源码安装方式 由于linux操作系统开放源代码,因而在其上安装的软件大部分也都是开源软件,例如apache.tomcat.php等软件.开源软件基本都提供源码下载,源码安装的方式:源码安 ...
- Linux下Qt的安装与配置
参考资料:http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html Linux 下编译.安装.配置 QT 下载qt 这里用的是4.7. ...
- Memcahce(MC)系列(两)Linux下一个Memcache安装
Linux下一个memcache安装 memcache是高性能.分布式的内存对象缓存系统,用于在动态应用中降低数据库负载.提升訪问速度.眼下用memcache解决互联网上的大用户读取是很流行的一种使用 ...
- Linux下Jdk的安装和jdk环境变量的设置
我们在Linux下安装系统软件的时候,经常遇到一些系统环境变量配置的问题.什么是环境变量?如何定制环境变量?我将在下面做一些介绍.一.什么是环境变量?Linux是一个多用户的操作系统.多用户意味着每个 ...
- Linux下zoopkeeper的安装和启动
Linux下zoopkeeper的安装和启动 1.什么是zookeeper ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoo ...
随机推荐
- Python3学习之路~5.11 configparser模块
用于生成和修改常见配置文档,当前模块的名称在 python 2.x 版本中为 ConfigParser, python 3.x 版本中变更为 configparser. 来看一个好多软件的常见文档格式 ...
- int bool 字符串 列表 字典 集合
1.int和bool 输出i的最大二进制位数inti = 1000 print(i.bit_length()) 2. str int bool list set dict tuple 相互转换 pr ...
- Python Pyinstaller打包含pandas库的py文件遇到的坑
今天的主角依然是pyinstaller打包工具,为了让pyinstaller打包后exe文件不至过大,我们的py脚本文件引用库时尽可能只引用需要的部分,不要引用整个库,多使用“from *** imp ...
- python 字节转换成图像
python 字节转换成图像 使用base64 1.图片转成字节使用: base64.b64encode() 2.字节转成图片: base64.b64decode() 图片字节串: iVBORw0K ...
- Vue+element 实现文件导出xlsx格式
傻瓜教程: 第一步:安装两个依赖包 npm install --save xlsx file-saver 第二步:建立一个Vue文件,导入以下代码即可 <template> <d ...
- puppeteer(二)操作实例——新Web自动化工具更轻巧更简单
一.入门实例 了解puppeteer见上一篇文章: https://www.cnblogs.com/baihuitestsoftware/p/9957343.html 1)本例主要是启动浏览器 con ...
- Zookeeper应用之——队列(Queue)
为了在Zookeeper中实现分布式队列,首先需要设计一个znode来存放数据,这个节点叫做队列节点,我们的例子中这个节点是/zookeeper/queue. 生产者向队列中存放数据,每一个消息都是队 ...
- C#-MVC-Razor视图引擎及解决路径问题的三个方法
Razor 视图引擎 与Aspx开发区别在于代码: 1.Razor 更智能,摒弃了<%%>格式,直接用@符号开启cs代码,遇到html时自动识别 2.遇到如汉字等即非cs代码,又非html ...
- Linux基础命令---lpstat查看打印任务
lpstat lpstat指令用来显示当前任务.打印机的状态.如果没有参数,那么就显示打印队列. 此命令的适用范围:RedHat.RHEL.Ubuntu.CentOS.Fedora.openSUSE. ...
- sublime text 入门
sublime text3入门教程 2017年07月19日 09:15:51 阅读数:13736 作者:sam976 转载需征得作者本人同意,谢谢. 1.介绍 所谓工欲善其事必先利其器,编码过程合理熟 ...