gasilap.blogg.se

View files anaconda prompt
View files anaconda prompt








  1. #VIEW FILES ANACONDA PROMPT INSTALL#
  2. #VIEW FILES ANACONDA PROMPT WINDOWS#

Once hitting the return key the environment will start to be created: This can be achieved hereunder: conda env create -f scikitlearnenv.yaml I can see that my environment YAML file is there and now I will use it to create the new / replica environment. Using the dir command I can list the structure of the directory:

view files anaconda prompt

#VIEW FILES ANACONDA PROMPT WINDOWS#

Here I will change directory cd in Windows to the correct location: In the root I will launch the Anaconda Prompt: The first step is to launch Anaconda prompt again, this time it does not matter what environment is listed, perhaps switch back to the root:

view files anaconda prompt

I will also change the prefix at the bottom of the YAML file and hit save: Creating a replica of your environment using a YAML file

#VIEW FILES ANACONDA PROMPT INSTALL#

I am going to rename the name attribute in the YAML file to create a similar environment, but with more of a machine learning focus, as I will install additional packages. The YAML file can be found here and it looks like this: Using YAML file to replicate environment Inside the YAML file, you will see all the packages I have used in my environment and it is a perfect way to deploy tutorials to make sure students are using the same packages as the trainer. Checking with file explorer confirms this: I was working in C:\Users\garyh\Documents so the output YAML file will be there. This then outputs all YAML files to the location specified to the left. This can be achieved by the below command: conda env export > scikitlearnenv.yml Instead of just listing the packages I am going to create them in a YAML file. But I want to directly create this in a directory on my PC. The next step is to list all the packages in my environment. Make sure the environment is selected, this will be shown in parentheses. Now I simply need to go to the Command Prompt that is on this environment and hit Launch. I change my Applications on: drop down to my environment:

view files anaconda prompt

I load up my Anaconda Navigator and select the environment I want to replicate in terms of package setup: This is where the YAML file comes in and it is sweet. I had the perfect environment for my setup and I want to potentially create another environment and add some additional packages, or I want to roll this environment out for training purposes.










View files anaconda prompt