# Using Virtual Environments with Lambda Stack

**URL:** <https://deeptalk.lambda.ai/t/using-virtual-environments-with-lambda-stack/454>\
**Category:** Uncategorized\
**Created:** [August 22, 2018, 5:30pm UTC](https://deeptalk.lambda.ai/t/using-virtual-environments-with-lambda-stack/454 "2018-08-22T17:30:45Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![markd](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@markd](https://deeptalk.lambda.ai/u/markd)\
**Post date:** [September 15, 2022, 6:13am UTC](https://deeptalk.lambda.ai/t/using-virtual-environments-with-lambda-stack/454/9 "2022-09-15T06:13:45Z")

</div>

It should be pretty much the same. (but below are the ones we have written up)

We have documented this for:  
- Docker - [NVIDIA NGC Tutorial: Run a PyTorch Docker Container using nvidia-container-toolkit on Ubuntu](https://lambdalabs.com/blog/nvidia-ngc-tutorial-run-pytorch-docker-container-using-nvidia-container-toolkit-on-ubuntu/)  
- python venv - [https://lambdalabs.com/blog/p/120e0f36-3dc2-4164-be0d-9c80705017e7/](https://lambdalabs.com/blog/p/120e0f36-3dc2-4164-be0d-9c80705017e7/)  
- virtualenv - [https://lambdalabs.com/blog/p/8060fba4-4ab4-464c-a829-d8fc917fcb1a/](https://lambdalabs.com/blog/p/8060fba4-4ab4-464c-a829-d8fc917fcb1a/)  
- Anaconda/miniconda - [Setting up environments: Anaconda](https://lambdalabs.com/blog/setting-up-a-anaconda-environment/)  
(I missed the step in this that I installed cuDNN or you could use the anaconda path).  
\* Anaconda is missing a step of setting the LD\_LIBRARY\_PATH for its cuDNN so that  
needs to be manually done. (The following will fix that):  
export LD\_LIBRARY\_PATH=${CONDA\_PREFIX}/lib:${LD\_LIBRARY\_PATH}

I hope that helps

---

_[View the full topic](https://deeptalk.lambda.ai/t/using-virtual-environments-with-lambda-stack/454)._
