@@ -296,6 +296,7 @@ Due to the security model and the cluster's architecture, `root` or `sudo` acces
...
@@ -296,6 +296,7 @@ Due to the security model and the cluster's architecture, `root` or `sudo` acces
Because normal users do not have sudo or root access, you may want to create a virtual environment or install into the home directory for your required software packages. Setting up a project like this will allow you to isolate project dependencies, prevent version conflicts, and ensure your environment is reproducible if sharing or collaboration is necessary. For more detailed guides to install packagaes in multiple languages please see [here](https://docs.starhpc.hofstra.io/software/virtual-env.html).
Because normal users do not have sudo or root access, you may want to create a virtual environment or install into the home directory for your required software packages. Setting up a project like this will allow you to isolate project dependencies, prevent version conflicts, and ensure your environment is reproducible if sharing or collaboration is necessary. For more detailed guides to install packagaes in multiple languages please see [here](https://docs.starhpc.hofstra.io/software/virtual-env.html).
**Python Example**
**Python Example**
Below are directions on using a simple virtual environment with venv. It is one of the many packages that allow you to manage virtual environments along with conda, virtualenv, and others.
Create a virtual environment:
Create a virtual environment:
```
```
...
@@ -316,4 +317,24 @@ Install new package:
...
@@ -316,4 +317,24 @@ Install new package:
Deactivate the environment if it's active:
Deactivate the environment if it's active:
```
```
deactivate
deactivate
```
```
\ No newline at end of file
**R Example**
Below are directions on using a simple virtual environment with renv. It is one of the main packages used to manage virtual environments in R.