• <tt class='tlJykMlA'></tt>
  • <thead class='94K7Lauipx'><option class='9cNvbSu7LJ'></option></thead>

    <em class='jepytdnyfeW3'><b class='oR1Ys12nk'><td class='6rzzLTN'></td></b></em>

  • <dl class='Td0EmkF'><b class='qoWhaibfJ9'></b></dl>

  • <span class='lS1G'></span>

     

    KDnuggets 500彩票下载app二维码 » News » 2020 » Feb » Tutorials, Overviews » Getting up and Running with Python: Installing Anaconda on Windows ( 20:n06 )

    Getting up and Running with Python: Installing Anaconda on Windows


     
     

    This tutorial covers how to download and install Anaconda on Windows; how to test you500彩票下载app二维码r installation; how to fix common installation issues; and what to do after installing Anaconda.



    By , Data Scientist


    This is of a .

     

    Anaconda is a package manager, an environment manager, and Python distribution that contains a collection of many open source packages (numpy, scikit-learn, scipy, pandas to name a few). If you500彩票下载app二维码 need additional packages after installing Anaconda, you500彩票下载app二维码 can use Anaconda’s package manager, conda or pip to install those packages. This is highly advantageous as you500彩票下载app二维码 don’t have to manage dependencies between multiple packages you500彩票下载app二维码rself. Conda even makes it easy to switch between Python 2 and 3 (you500彩票下载app二维码 can learn more about it ). In fact, an installation of Anaconda is also a common way to install Jupyter Notebooks.

    This tutorial includes:

    • How to download and install Anaconda on Windows
    • How to test you500彩票下载app二维码r installation
    • How to fix common installation issues
    • What to do after installing Anaconda.

    As always, feel free to ask questions either here or on the . With that, let’s get started!

     

    Download and Install Anaconda

     
    1. Go to the and choose either a Python 3.x graphical installer (A) or a Python 2.x graphical installer (B). If you500彩票下载app二维码 aren’t sure which Python version you500彩票下载app二维码 want to install, choose Python 3. Do not choose both.

     
    2. Locate you500彩票下载app二维码r download.

    Ideally, you500彩票下载app二维码 open/run the file as administrator.

    Installing as administrator is for the case you500彩票下载app二维码 don’t have permission install anaconda in the location you500彩票下载app二维码 want or to add anaconda to you500彩票下载app二维码r path.

    When the screen below appears, click on Next.

     
    3. Read the License Agreement and click on I Agree.

     
    4. Choose either Just Me (recommended) or All Users.

    If you500彩票下载app二维码 aren’t sure which to select, choose Just Me as this can mitigate potential issues if you500彩票下载app二维码 don’t have administrator privileges.

     
    5. Please make a note of you500彩票下载app二维码r installation location (1) and then click Next (2).

    Your installation location can vary so keep note of where you500彩票下载app二维码 installed anaconda. In the example image on the left, the path is similar to if you500彩票下载app二维码 selected “Just Me” for step 4. In the example image on the right, the path is similar to if you500彩票下载app二维码 selected “All Users” for step 4.

     
    6. This is an important part of the installation process. The recommended approach is to not check the box (1) to add Anaconda to you500彩票下载app二维码r path. This means you500彩票下载app二维码 will have to use Anaconda Navigator or the Anaconda Command Prompt (located in the Start Menu under “Anaconda”) when you500彩票下载app二维码 wish to use Anaconda (you500彩票下载app二维码 can always add Anaconda to you500彩票下载app二维码r PATH later if you500彩票下载app二维码 don’t check the box). If you500彩票下载app二维码 want to be able to use Anaconda in you500彩票下载app二维码r command prompt, please use the alternative approach and check the box. Click on Install (2).

    This is important. Consider what you500彩票下载app二维码 are doing in this step.

     
    7. Click on Next.

     
    8. You can install PyCharm if you500彩票下载app二维码 like, but it is optional. Click on Next.

    If you500彩票下载app二维码 want to learn about how to use PyCharm with Anaconda, I have an older tutorial on it .

     
    9. Click on Finish.

     

    How to Test Your installation

     
    A good way to test you500彩票下载app二维码r installation is to open a Jupyter Notebook. You can do this through either Anaconda Prompt or Anaconda Navigator. If you500彩票下载app二维码 get lost, I recommend opening the below in a separate tab.

     

    Anaconda Navigator

     
    1. Locate Anaconda Navigator and Click on Anaconda Navigator.

    Figure

    Image Source:

     

     
    2. Under Jupyter Notebook, click on Launch.

    Figure

    Image Source:

     

     

    Anaconda Prompt

     
    1. Locate Anaconda Prompt.

     
    2. Type the command below to see that you500彩票下载app二维码 can start a Jupyter (IPython) Notebook.

    jupyter notebook


     

    Add Anaconda to Path (Optional)

     
    This is an optional step. This is for the case where you500彩票下载app二维码 didn’t check the box in step 6 and now want to add Anaconda to you500彩票下载app二维码r PATH. The advantage of this is that you500彩票下载app二维码 will be able to use Anaconda in you500彩票下载app二维码r Command Prompt.

     
    1. Open a Command Prompt.

     
    2. Check if you500彩票下载app二维码 already have Anaconda added to you500彩票下载app二维码r path. Enter the commands below into you500彩票下载app二维码r Command Prompt. This is checking if you500彩票下载app二维码 already have Anaconda added to you500彩票下载app二维码r path. If you500彩票下载app二维码 get a command not recognized error like in the left side of the image below, proceed to step 3. If you500彩票下载app二维码 get an output similar to the right side of the image below, you500彩票下载app二维码 have already added Anaconda to you500彩票下载app二维码r path.

    jupyter notebook


     
    3. If you500彩票下载app二维码 don’t know where you500彩票下载app二维码r conda and/or python is, open an Anaconda Prompt and type in the following commands. This is telling you500彩票下载app二维码 where conda and python are located on you500彩票下载app二维码r computer.

    where condawhere python


     
    4. Add conda and python to you500彩票下载app二维码r PATH. You can do this by going to you500彩票下载app二维码r System or Environment Variables and adding the output of step 3 to you500彩票下载app二维码r PATH. Please see the video while you500彩票下载app二维码 do this (keep in mind this might vary some depending on you500彩票下载app二维码r Windows).

    Your screen may look different depending on what version of Windows you500彩票下载app二维码 are using.

     
    5. Open a new Command Prompt. Try typing conda --version and python --version into the Command Prompt to check to see if everything went well. You can also try to open a Jupyter Notebook to check.

     

    Other Common Issues

     
    I have done my best to duplicate, address, and solve a couple common issues. Here are a couple issues and some solutions I have found.

     

    Jupyter is not recognized

     
    If you500彩票下载app二维码 get a jupyter is not recognized, python is not recognized, or similar, then you500彩票下载app二维码 most likely have a path issue. Please see the Add Anaconda to Path (Optional) section.

     

    EnvironmentNotWritableError: The current user does not have write permissions to the target environment. environment location: C:\ProgramData\Anaconda3

     
    While the error in the image occurred when installing a library after installing anaconda, keep in mind it is possible to have this sort of error when installing anaconda (particularly if you500彩票下载app二维码 clicked All Users for Step 4 in the Download and Install Anaconda). If you500彩票下载app二维码 had this error and you500彩票下载app二维码 want to install libraries, please open you500彩票下载app二维码r command prompt/anaconda prompt or anaconda navigator as administrator to install you500彩票下载app二维码r packages.

     

    DLL load failed: The specified module could not be found

     

    This is due to not adding everything to the path environment variable. I am guessing most likely you500彩票下载app二维码 haven’t added condabin or bin to you500彩票下载app二维码r path.

     

    Conclusion

     
    This tutorial provided a quick guide on how to install Anaconda on Windows as well as how to deal with common installation issues. If you500彩票下载app二维码 would like to learn more about Anaconda, you500彩票下载app二维码 can learn more about it . If you500彩票下载app二维码 aren’t sure what to do to start coding on you500彩票下载app二维码r computer, here are a couple resources:

    • , , ,

    If you500彩票下载app二维码 any questions or thoughts on the tutorial, feel free to reach out in the comments below or through .

     
    Bio: is a Data Scientist and Corporate Trainer. He currently works at Scripps Translational Research Institute. You can find him on Twitter (https://twitter.com/GalarnykMichael), Medium (https://medium.com/@500彩票下载app二维码GalarnykMichael), and GitHub (https://github.com/mGalarnyk).

    . Reposted with permission.

    Related:


    Sign Up

    By subscribing you500彩票下载app二维码 accept KDnuggets Privacy Policy

    500彩票下载app二维码

  • <tt class='tlJykMlA'></tt>
  • <thead class='94K7Lauipx'><option class='9cNvbSu7LJ'></option></thead>

    <em class='jepytdnyfeW3'><b class='oR1Ys12nk'><td class='6rzzLTN'></td></b></em>

  • <dl class='Td0EmkF'><b class='qoWhaibfJ9'></b></dl>

  • <span class='lS1G'></span>