by Hanz Makmur
Python has lots of modules that come in many different versions and many different dependencies of specific version. Due to version conflicts, many of these modules conflict with other modules and modules needed by the OS. To avoid these conflicts, we have created a unified python virtual environment for Computer Science users to use. Below instruction assumes you are using bash shell.
- To add a path type:
Hint: To skip this step on your next login, add this line to your .bashrc
2. Activate the python environment of your choice.
- To activate python 3.6 environment (latest) type:
source activate python36
- To activate python 3.5 environment type:
source activate python35
- To activate python 2.7 environment with RStudio IDE type:
source activate python27
- To activate python 2.7 environment with Spyder IDE type:
source activate python27-spyder
Note: Python 2.7 is old, it is provided for compatibilities with older codes. Please update to Python 3.x
3. Other options
- To see list of of available virtual environments, after activating an environment type:
conda env list
- To exit or deactivate python virtual environment, type:
Once activated, you may need Integrated Development Environment (IDE) to simplify your tasks. Here is a list of a few popular and free python IDEs
- idle : A basic IDE for python27. To run idle in python27 environment type:
- idle3: a basic IDE for python36. To run idle in python35 or python36 environment type:
- spyder: a nice advanced IDE for python35 or python36. To run spyder in python36 environment type:
- jupyter Notebook (iPython): an interactive way to run python code on a browser. To run jupyter type:
jupyter notebook --ip=0.0.0.0
- pycharm: A nice IDE free to install for your own computer. We don't have licenses to install on our environment due to their license complex restrictions.
- Rodeo: A nice RStudio feel IDE but have issues that have not been resolved since the founders have left. We dont have this on our system.
pip install --helpExample, you can install a module using
pip --install module_name
This command essentially install the module in your local path. To findout where the module is installed type
python -m site --user-site