![]() ![]() (example_env) $ conda install package_name # e.g, like ‘yt' As with the package search, you can install from a different channel using a ‘-c channel_name' flag, e.g.: (example_env) $ conda install -c conda-forge yt To update a package to a newer version To install from a different channel, use something like: (example_env) $ conda search -c conda-forge yt To install packages in an active virtual environment For instance, we've seen more recent versions of the ‘yt' package in the channel named "conda-forge". (example_env) $ conda search package_name This searches for packages from the default "channel." Other channels might have newer versions available. To use a particular virtual environment (e.g., one named ‘example_env'): $ source activate example_env # Note: don't use ‘conda activate' To see which versions of a package are available $ conda create -name example_env To see which virtual environments you've created Setup a Conda Virtual EnvironmentĬhoose whatever name you want - it should reflect the application/project you are working on. However, it is recommended that you install all required packages beforehand to save yourself valuable compute time. ![]() This is useful if you forgot a package, you won't have to worry about cancelling and restarting your job before installing. You can install python packages in a conda environment while your notebook is running. Any other Python packages you need to run your notebook should be installed with Conda. ![]()
0 Comments
Leave a Reply. |