Conda install package to specific environment
I really don't like this required argument, but a simple way to get around it is just to pass in python as the required package.Īfter running the above command you will be given the following information: Note that the conda create command requires that you give it the name of a package to install in the new environment.
This command will create a new environment with the name myflaskapp and install the package flask in the environment. Let's say we want an environment to start working on a flask application. For basic usage conda create is the command you want. The same functionality is available with the conda create and conda env command. Replacing Virtualenvįor those of you that are not familiar with virtualenv it is a tool that allows you to create isolated environments with a set of packages installed from pip. Unless you plan to manually do this yourself let the installer do it for you. The installer will ask you if it should automatically add conda to the system path. Note: To run this install unattended you can use the -b option in the above command. Run the installer and follow the prompts. Choose whichever you want to be the default. It actually does not matter which you get as conda treats Python itself as an install-able package so you can change the version at any time (more on this later). You'll notice that there are both Python 2 and Python 3 versions.
Conda install package to specific environment download#
Go here and download the distribution for your operating system. You can find the official installation instructions here. While conda is supported on all operating systems I'll be using OS X 10.10.3. Installationįor this guide we'll be installing the miniconda distribution. This blog post will cover this basic level of use. You can even still use pip to install packages. However, at it's most basic level you can use it to manage the version of python you use and create isolated environments. This goes on top of miniconda.Ĭonda is normally marketed as much more than a simple replacement for the version of python on your system and isolated environments, and in reality it is! It's a completely new packaging system, package repository, and much more.