Page 235 - AI Computer 10
P. 235

Step 4:  Type ‘python--version’ command to verify that Anaconda has been installed on your computer.













        Step 5:  Now, type ‘conda update∼–all –yes’ command. This command will update to its latest version Anaconda
                  on your computer.









        Creating a Virtual Environment

        A virtual environment is a tool that helps to keep dependencies required by different projects separate by
        creating isolated Python virtual environments for them. This is one of the most important tools that most Python
        developers use.

        In Python 3+, virtual environment is readily available. To create a new environment, follow the given steps:
        Step 1:  Open Anaconda prompt.
        Step 2:   In general, Base is the default environment in which Anaconda works. To create a new environment in
                 Anaconda, type the following command after the path:

                                         conda create -n env python=3.11







        Step 3:  Press the Enter key. After some processing, the prompt will ask if we wish to proceed with installations
                 or not. Type Y and press the Enter key. Once we press Enter, the packages will start getting installed in
                 the environment.




























                                                                                                             101
                                                                                                             101
   230   231   232   233   234   235   236   237   238   239   240