It was created for Python programs but it can package and distribute software for any language.Ĭonda as a package manager helps you find and install packages. Conda easily creates, saves, loads, and switches between environments on your local computer. Conda quickly installs, runs, and updates packages and their dependencies. You can use other methods, but the developers often use the discussed techniques.Conda is an open-source package management system and environment management system. This article discusses a virtual environment and three methods to list virtual environments in Python. Since we created a virtual environment using the virtualenv command earlier, let’s try to list it using the workon command. Also, using this command without arguments can acquire a list of virtual environments. We use the workon command to activate a virtual environment. As mentioned earlier, it can use to create virtual environments, and the workon command comes along with it. We need to install the virtualenv tool to use this command. As a result, it will display the virtual environments we created, as below. Let’s use the first command, conda env list. Any of these will give you the same result. Conda provides three commands to list virtual environments. Let’s create two virtual environments using conda.Ĭreating two virtual environments: $ conda create -name vEnv2 If we make our virtual environments using conda, we should list them using the conda command. Conda has several commands to create, remove and list virtual environments. Use the Conda CommandĬonda is an environment management system that comes with Anaconda and Anaconda is a Python distribution used for data science calculations and package management. Now, if you try the lsvirtualenv command, you can see a list of virtual environments from where you created them.
0 Comments
Leave a Reply. |