Install Miniconda (Python) with Jupyter Notebook and Setting Up Virtual Environments on Windows 10

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024
  • 👉 Explore All My Excel Solutions: pythonandvba.com/solutions
    𝗗𝗘𝗦𝗖𝗥𝗜𝗣𝗧𝗜𝗢𝗡
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    In this tutorial, I will show how to install Miniconda & Jupyter Notebook on Windows 10. Additionally, I will be explaining the setup process & the importance of Virtual Environments.
    ✅ Chapters:
    0:00 Installation Miniconda
    1:40 What are Virtual Environments?
    2:39 How to create Virtual Environments?
    4:18 Installation Jupyter Notebook
    4:30 Practical Example Using Virtual Environments
    6:42 Quick tips Jupyter Notebook
    7:21 Outro
    🚩 What is the difference between Python vs. Anaconda vs. Miniconda?
    If you want to buy a smartphone, there are 3 offers:
    1. You only get the Smartphone
    2. You get the Smartphone + 100 Smartphone Cases + 1 delicious cookie
    3. You get the Smartphone + the option to order any Smartphone Case in the future + 1 delicious cookie
    Python is in this example the Smartphone.
    The Smartphone cases are libraries like Pandas, Seaborn, Sklearn, xlwings,...
    The delicious cookie is conda. Conda is an environment management system.
    If you install Anaconda, you will get Python + over 250 packages/libraries already preinstalled + conda
    If you install Miniconda, you will get Python + conda
    If you install Python, you only get Python
    Instead of using conda to manage your virtual environments, you can also python's build-in environment management system venv:
    docs.python.org/3/tutorial/ve...
    I personally like to manage my virtual environments with conda & install packages whenever I need them. Hence, I am using Miniconda as shown in this tutorial.
    Download Miniconda here:
    👉 docs.conda.io/en/latest/minic...
    Jupyter Notebook Markdown Cheatsheet:
    👉 bit.ly/3hW9jyB
    𝗧𝗢𝗢𝗟𝗦 𝗔𝗡𝗗 𝗥𝗘𝗦𝗢𝗨𝗥𝗖𝗘𝗦
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🆓【𝗙𝗥𝗘𝗘】Excel Add-in (𝗠𝘆𝗧𝗼𝗼𝗹𝗕𝗲𝗹𝘁): pythonandvba.com/mytoolbelt
    📊 Dashboard Excel Add-In (𝗚𝗿𝗮𝗳𝗹𝘆): pythonandvba.com/grafly
    🎨 Cartoon Charts Excel Add-In (𝗖𝘂𝘁𝗲𝗣𝗹𝗼𝘁𝘀): pythonandvba.com/cuteplots
    🤪 Fun Emoji Excel Add-In (𝗘𝗺𝗼𝗷𝗶𝗳𝘆): pythonandvba.com/emojify
    📑 Excel Templates: pythonandvba.com/go/excel-tem...
    🎓 My Courses: pythonandvba.com/go/courses
    📚 Books, Tools, and More: pythonandvba.com/resources
    𝗖𝗢𝗡𝗡𝗘𝗖𝗧 𝗪𝗜𝗧𝗛 𝗠𝗘
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    🔗 LinkedIn: / sven-bosau
    📸 Instagram: / codingisfun_official
    💻 GitHub: github.com/Sven-Bo
    💬 Discord: pythonandvba.com/discord
    📬 Contact: pythonandvba.com/contact
    ☕ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲?
    If you want to support this channel, you can buy me a coffee here: pythonandvba.com/coffee-donation

Комментарии • 70

  • @evaldosilva786
    @evaldosilva786 Год назад +7

    Wow, this content is perfect for anyone starting out with Python! The way he explained the environment was key! It's like he knew exactly what we needed to get up and running.

    • @CodingIsFun
      @CodingIsFun  Год назад

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video! 😃 Happy Coding! :)

  • @ermalgashimramori
    @ermalgashimramori 3 года назад +3

    As always great content. Looking forward to seeing newer videos.

    • @CodingIsFun
      @CodingIsFun  3 года назад

      Hi Ermal,
      Thank you so much! 🙏

  • @jenn1738
    @jenn1738 Год назад

    you're an amazing teacher. thank you for making this! you gained a new student and subscriber 🎉

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for the kind words! I am glad you enjoyed it and welcome aboard! 🤩🎉

  • @azhanisyahputra9867
    @azhanisyahputra9867 3 месяца назад

    very straightforward. thank you so much

    • @CodingIsFun
      @CodingIsFun  3 месяца назад

      An absolute pleasure! Thanks for watching! Cheers, Sven ✌️

  • @belxym
    @belxym 3 года назад

    Well explained, thank you!

    • @CodingIsFun
      @CodingIsFun  3 года назад +1

      *I am glad you liked the video, thanks for watching and for the comment!*

  • @carlo6195
    @carlo6195 2 года назад +1

    Nicely done. Thank you. 😀

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Thank you :) Glad you like it.

  • @anandk5536
    @anandk5536 3 года назад

    Thank man, you saved my day.

    • @CodingIsFun
      @CodingIsFun  3 года назад

      Thank you for watching the video. Glad it was helpful 😀

  • @siamakrouzmeh
    @siamakrouzmeh Год назад

    Amazing content. Many thanks.

    • @CodingIsFun
      @CodingIsFun  Год назад

      Glad you liked it. Thanks for watching and taking the time to leave a comment!

  • @naveenvp1362
    @naveenvp1362 2 года назад

    Great man thanks for the content

    • @CodingIsFun
      @CodingIsFun  2 года назад +1

      My pleasure Naveen, thank you for watching!

  • @asdasd-tr1ih
    @asdasd-tr1ih 2 года назад

    Thanks man
    Thank you very much

    • @CodingIsFun
      @CodingIsFun  2 года назад +1

      You're very welcome! Thank you for watching and for the comment!

  • @raisulalam6051
    @raisulalam6051 2 года назад

    Thanks for the great video

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Thanks for watching the video and taking the time to leave a comment! :)

  • @fwaafnn
    @fwaafnn 11 месяцев назад

    thank you, it's help me a lot💪

    • @CodingIsFun
      @CodingIsFun  11 месяцев назад

      Glad to hear that! :)

  • @chrisw.9517
    @chrisw.9517 11 месяцев назад +1

    Thank you for the elaborate tutorial!
    My question is on setting environment variables: While you are just selecting the option "Add Miniconda3 to my PATH environment variable" during the installation process, most other guys in other video tutorials uncheck this box and manually add something like C:\Users\Chris\miniconda3\Scripts to their path after the installation process. What is the difference between both approaches?

    • @CodingIsFun
      @CodingIsFun  11 месяцев назад +2

      Thanks for watching. Adding the PATH during installation automatically adds Miniconda to your system's PATH, allowing you to access its commands directly from the command line. Manually adding it post-installation offers more control over the order in the PATH and helps avoid potential conflicts with other Python installations. If you have no other Python versions, adding it automatically is simpler. If you have other installations or want more control, do it manually.

    • @chrisw.9517
      @chrisw.9517 11 месяцев назад +1

      @@CodingIsFun okay. Thanks for clarifying.

  • @user-rr6tc8xp6u
    @user-rr6tc8xp6u 4 месяца назад

    Awesome guide.

    • @CodingIsFun
      @CodingIsFun  4 месяца назад

      Thanks for the positive feedback! Appreciate you taking the time to leave a comment. Cheers, Sven ✌️

  • @johanvanmarsch6425
    @johanvanmarsch6425 3 года назад

    Thnx Bro. Nice video, what is color theme for the IDE config, I m looking the same colorisation but I cannot find ? Thanks .

    • @CodingIsFun
      @CodingIsFun  3 года назад

      Hi Johan,
      *I am glad you liked the video, thanks for watching and for your question!*
      For the Anaconda Prompt as well as for the Windows Command Prompt I am using the default style.
      Cheers,
      Sven ✌

  • @mar_r
    @mar_r 3 года назад

    Gracias 😁

    • @CodingIsFun
      @CodingIsFun  3 года назад +1

      I'm glad that the information was helpful to you 😃

  • @VisualKreation
    @VisualKreation 3 года назад +1

    print("Nice helpful video and successful installation .TQ")

    • @CodingIsFun
      @CodingIsFun  3 года назад +1

      for i in range(1,11):
      print('Thank you very much! Glad it was helpful!')

    • @teroahooy5276
      @teroahooy5276 2 года назад +1

      Cout

  • @findthetruth3021
    @findthetruth3021 3 года назад

    Thanks a lot for this amazing video, but when I create the file by app.py didn't change to your python like yours? please help me.

    • @CodingIsFun
      @CodingIsFun  3 года назад

      *Thanks for watching the video & your question.*
      Could you please try to enable the view of 'filename extensions' and try to rename your file again?
      👉 vtcri.kayako.com/article/296-view-file-extensions-windows-10
      Hope this helps 🙏
      Cheers,
      Sven

  • @abirbarbara1560
    @abirbarbara1560 2 года назад

    thank you

    • @CodingIsFun
      @CodingIsFun  2 года назад

      A pleasure! Thanks for watching the video & your comment! :)

  • @SathiraWijeratne
    @SathiraWijeratne 5 месяцев назад

    Hi I installer miniconda and create an environment in which I installed tensorflow. Then I opened jupyternotebook in that environment and tried to import tensorflow but I still get the error saying "no module named 'tensorflow'" any idea why? I even checked if tensorflow is actually installed in that environment with 'pip show tensorflow flow'

  • @master_razmut
    @master_razmut Год назад

    The Best !

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for the kind words! I am glad you enjoyed it.

  • @akhilreddy6220
    @akhilreddy6220 2 года назад

    thanks

    • @CodingIsFun
      @CodingIsFun  2 года назад

      You are welcome. Thanks for watching!

  • @maxru6142
    @maxru6142 9 месяцев назад

    Great Video! Just a quick question for my understanding….is miniconda for free?

    • @CodingIsFun
      @CodingIsFun  9 месяцев назад

      Thanks! Yes, it's free

  • @AntonL.-dq2rz
    @AntonL.-dq2rz Год назад +1

    why do you install packages by pip, not by conda ?

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Good point! In the video, I used pip out of habit, but you're right that using conda would be more suitable when working with Miniconda.

  • @bogah4652
    @bogah4652 Год назад

    what happens when I "conda install seaborn" without specifying environment? I use spyder as standalone. I dont have anaconda

    • @CodingIsFun
      @CodingIsFun  Год назад

      It will be installed in the base environment

  • @paulmoss4199
    @paulmoss4199 Год назад

    I already have Python installed (v3.10), will installing miniconda interfere with my current python installation?

    • @CodingIsFun
      @CodingIsFun  Год назад

      If you already have Python installed on your system, installing Miniconda should not interfere with your existing Python installation. Miniconda is a distribution of Python that includes the conda package manager, which can be used to manage your Python installations and packages. Conda allows you to create separate environments for your Python projects, so you can have different versions of Python and packages installed for each project without them conflicting with each other.
      In other words, installing Miniconda should not interfere with your existing Python installation, but rather provide you with additional tools to manage your Python installations and environments (using conda). I hope it helps!

    • @paulmoss4199
      @paulmoss4199 Год назад

      @@CodingIsFun Thank you, I tried to install Miniconda today but I receive the error "Failed to initialse Anaconda directories". Please have you any advice what to do? (I am using Windows 10).

    • @CodingIsFun
      @CodingIsFun  Год назад

      ​@@paulmoss4199 It is hard to tell from a distance what is causing the error. Try searching for the text of your error message on google/StackOverflow.

  • @yashi_tiwari
    @yashi_tiwari Год назад

    when I navigate to a folder and open cmd there, and try to activate myenv through conda, error prompt that conda is neither internal or external command

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

    • @alexyuhay
      @alexyuhay Год назад +2

      I had this issue too, which I think originates at 1:09; my installer did not let me select the option in the red box. You've probably solved this now, but I'll go through it in case someone else has this problem. Its crux is that Windows doesn't know what "conda" is, so you need to tell Windows what it is by telling Windows where it is; "environment variables" serve this purpose. I had a few goes at trying to get the environment variable installed, but I think this method worked - here goes:
      1 - Locate the miniconda3 installation location:
      - In an anaconda prompt window, enter: "where conda" (without quotes)
      - You should see a few folders pop up (%YOURdirectory%\miniconda3\Library, %YOURdirectory%\miniconda3\Scripts, and %YOURdirectory%\miniconda3\condabin).
      - My installation was located at "C:\ProgramData\miniconda3".
      2 - Add the "condabin" folder to the environment variables:
      - Open "Edit the system environment variables" from control panel (or just type "environment" into start menu).
      - Click "Environment Variables" at the bottom of the window.
      - From the top box labelled "User variables for %USER%" (do NOT use the second box labelled "System variables"), double click the "Path" variable.
      - Append the already present directory (think it's some "Windows apps" directory) with your "condabin" folder by typing ";%YOURdirectory%\miniconda3\condabin;" (no quotes). In my case I typed: ";C:\ProgramData\miniconda3\condabin;", again, no quotes.
      - NOTE: you need the semicolon to separate the two directories (i.e., the one already there and your new "condabin" directory), e.g., "present_dir; condabin_dir;". If there is a separate field for the new environment variable (i.e., if there are 2+ variables already present), then you won't need the semicolons as the separate fields do the separating.
      - Hit okay a few times and close any anaconda and cmd.exe windows.
      3 - Test it
      - You should now be able to access conda through cmd.exe from any directory.
      - Note: my environment variable now does not have "condabin" at the end (i.e., just: "C:\ProgramData\miniconda3"), can't remember if I did that deliberately or the computer changed it...? I guess if it doesn't work, try that instead :D
      Btw I adapted this from developers.google.com/earth-engine/guides/python_install-conda#windows_4, but my folder was a bit different; hopefully I've provided something a bit more general! glhf!

  • @user-ns7me4zl8j
    @user-ns7me4zl8j Месяц назад

    Sir, After pip install jupyter
    How can open jupyter_example folder and data file

    • @CodingIsFun
      @CodingIsFun  Месяц назад

      Thanks for watching. Sorry, but I am not sure what you mean. Cheers, Sven ✌️

  • @rauniyarrakesh
    @rauniyarrakesh 2 года назад

    Anaconda Prompt (miniconda3) this cmd prompt is note working.when i clicking on this nothing happening.

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

  • @shafin.15
    @shafin.15 2 месяца назад

    How I can move to another drive and create an environment there?

    • @CodingIsFun
      @CodingIsFun  2 месяца назад

      The Conda environments are not folder-specific. I hope that helps! Happy coding! Cheers, Sven ✌️

  • @alhafizhkhoirullah723
    @alhafizhkhoirullah723 Год назад

    WOWWW GGWP

    • @CodingIsFun
      @CodingIsFun  Год назад

      Glad you liked it. Thanks for watching.

  • @arseniochocolate2889
    @arseniochocolate2889 Год назад

    I'm stuck on install requirements.txt

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. With that bit of information, I cannot help you. Sorry!

  • @khoaaam
    @khoaaam 2 года назад

    Anaconda prompt isn’t showing. Any help?

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Thanks for watching the video. I have looked on Google. Kindly check out the following link. There are many fixes suggested regarding this issue: github.com/ContinuumIO/anaconda-issues/issues/8794