Page 183 - Ai Book - 10
P. 183

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 the latest version of 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 the 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 on it and press Enter. Once we press Enter, the packages will start getting installed in the
                 environment.




























                                                                                                              57
                                                                                                              57
   178   179   180   181   182   183   184   185   186   187   188