Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

installing Anaconda in virtual environment!

Writer Matthew Barrera

I know anaconda is itself being used to set environment for different python versions, but i am trying to install the anaconda in virtual environment, so that my normal python setup, along with other packages ( like open-CV ,tensor flow , and CUDA and its dependencies ) shouldn't be affected,

{ initially i tried installing all these dependencies on anaconda, but it didn't seems to work for me, that's why i shifted back to normal version }

As i tried it, it installed the anaconda, but i don't now how, but i am able to access it outside of that virtual environment ( used virtualenv ), for now i have removed the anaconda It will be helpful if someone tell me correct alternatives for it,

2

1 Answer

Anaconda is not intended to be installed in a virtual environment like virtualenv. It is meant to be its own virtual environment, more or less.

It is meant to be installed in your home directory for the local user(~/anaconda3 by default). From there, you will create the necessary virtual environments by creating separate conda environments (using the conda create... and conda activate... commands.

It does this by modifying your .bashrc and changing your $PATH to point to the isolated python installation.

You should follow the installation instructions as laid out in the installation guide for Linux.

If you want to continue to use your normal python environment, the installation procedure will allow you to opt out of having it modify your .bashrc and your $PATH will be unaffected.

In that case, you will enter your Anaconda environments by entering a command such as conda activate base for example . The Getting Started Guide provides a quick overview on managing your conda virtual environments.

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy