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
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.
Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video! 😃 Happy Coding! :)
As always great content. Looking forward to seeing newer videos.
Hi Ermal,
Thank you so much! 🙏
you're an amazing teacher. thank you for making this! you gained a new student and subscriber 🎉
Thanks for the kind words! I am glad you enjoyed it and welcome aboard! 🤩🎉
very straightforward. thank you so much
An absolute pleasure! Thanks for watching! Cheers, Sven ✌️
Well explained, thank you!
*I am glad you liked the video, thanks for watching and for the comment!*
Nicely done. Thank you. 😀
Thank you :) Glad you like it.
Thank man, you saved my day.
Thank you for watching the video. Glad it was helpful 😀
Amazing content. Many thanks.
Glad you liked it. Thanks for watching and taking the time to leave a comment!
Great man thanks for the content
My pleasure Naveen, thank you for watching!
Thanks man
Thank you very much
You're very welcome! Thank you for watching and for the comment!
Thanks for the great video
Thanks for watching the video and taking the time to leave a comment! :)
thank you, it's help me a lot💪
Glad to hear that! :)
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?
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.
@@CodingIsFun okay. Thanks for clarifying.
Awesome guide.
Thanks for the positive feedback! Appreciate you taking the time to leave a comment. Cheers, Sven ✌️
Thnx Bro. Nice video, what is color theme for the IDE config, I m looking the same colorisation but I cannot find ? Thanks .
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 ✌
Gracias 😁
I'm glad that the information was helpful to you 😃
print("Nice helpful video and successful installation .TQ")
for i in range(1,11):
print('Thank you very much! Glad it was helpful!')
Cout
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.
*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
thank you
A pleasure! Thanks for watching the video & your comment! :)
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'
The Best !
Thanks for the kind words! I am glad you enjoyed it.
thanks
You are welcome. Thanks for watching!
Great Video! Just a quick question for my understanding….is miniconda for free?
Thanks! Yes, it's free
why do you install packages by pip, not by conda ?
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.
what happens when I "conda install seaborn" without specifying environment? I use spyder as standalone. I dont have anaconda
It will be installed in the base environment
I already have Python installed (v3.10), will installing miniconda interfere with my current python installation?
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!
@@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).
@@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.
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
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
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!
Sir, After pip install jupyter
How can open jupyter_example folder and data file
Thanks for watching. Sorry, but I am not sure what you mean. Cheers, Sven ✌️
Anaconda Prompt (miniconda3) this cmd prompt is note working.when i clicking on this nothing happening.
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
How I can move to another drive and create an environment there?
The Conda environments are not folder-specific. I hope that helps! Happy coding! Cheers, Sven ✌️
WOWWW GGWP
Glad you liked it. Thanks for watching.
I'm stuck on install requirements.txt
Thanks for watching. With that bit of information, I cannot help you. Sorry!
Anaconda prompt isn’t showing. Any help?
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