スキップしてメイン コンテンツに移動

投稿

10月, 2023の投稿を表示しています

Create a virtual environment by reading the Conda environment configuration file in Anaconda Navigator

 Anaconda is a very useful environment for implementing Python for scientific calculations. Many people use Anaconda. However, if you keep installing and updating packages to the environment you have created, you may lose track of dependencies, and you may not be able to reproduce the environment on other computers. To prevent this from happening, create and manage your preferences file well so that anyone can reproduce a virtual environment anywhere. In this article, we will show you how to create a virtual environment from an environment settings file using Anacnoda Navigator, a GUI rather than a CUI, so that even beginners can use it. 1. prepare environment setting file (yaml file) The following is an example of an environment configuration file "env.yml". The file name can be arbitrary, but the extension should be "yml". name: test-env channels: - defaults - gurobi dependencies: - python=3.8 - gurobi - spyder - pandas - openpyxl ”name" is the