Can I have (insert Python package name here) installed on the lab computers?


Can I have <insert Python package name here> installed on the lab computers?

Due to security and privacy concerns we do not grant root access to our lab machines. However, that does not mean you cannot get your desired python package another way.

Python has a wonderful tool known as "virtualenv" that allows users to create virtual environments. Virtualenv creates a folder which contains all the necessary executables to use the packages that a Python project would need. This allows you to have you own personalized version of Python and pip onto which you can install any package you desire without affecting other users. 

How do I get "virtualenv"?

Open up a terminal on one of the CSIL machines (csil-01.cs.ucsb.edu to csil-48.cs.ucsb.edu) and run the following commands:

virtualenv env
source env/bin/activate

Once set up is complete, which might take several minutes, you will have your own personal version of Python and pip. You will be able to install packages and tools, no root or sudo access required.

 

Tags: permission, python, toolbox
Last update:
2017-04-27 03:08
Author:
Marc J Miller
Revision:
1.1
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags