This post provides you a thorough description of how to install both the anaconda and python versions on your Windows computer, and how to access them individually.
If you're reading this post, then you're either an ML enthusiast or an enthusiast like me to try various python distributions 😅.
As a python developer, there will be situations where one needs to work with more than one distributions of python. And it's known fact that accessing different distributions of python is a bit tricky and can be a hectic job for beginners. Well, after reading this post, hope you'll get a clear picture how to use both with ease.
- A Windows 10 operating machine.
- Python (any version).
- Anaconda Distribution Package.
In this scenario, I'll be using latest version of Python 3.9.1, however you're free to use any version of python.
Download the latest version of Anaconda Distribution here
Click on Install. Hang on some time, the installation will take a while depending on your system performance.
Once installed, do a quick run of Anaconda Navigator and ensure it's running fine.
Download the appropriate version python exe installer from here
- Run the installer.
Choose a custom location other than the default. In this case I've choose
Click on Install and hang on for few moments until it get installed.
It's actually simple to access / activate anaconda distribution.
command promptand use the following command to activate conda base environment.
conda activate base
(base)before the path indicates that conda environment is active.
To deactivate conda environment, use the following command
Well, with that you've learned how to access/activate conda environment using
cmd, let's look into accessing python environment using
Note: Every anaconda distribution comes with base environment. Any additional virtual environments created inside anaconda can be activated using the
conda activate <envname>
A simple thing to remember here, just make sure that you're not in
conda environment in order to access Native Python distribution.
- Just type
pyto open the python interpreter.
With both the distributions installed, you have control on installing packages separately for each distribution.
- To install any package/dependency in conda environment, use the following command
conda install <packageName>
- To install any package/dependency in native python, use the following command
pip install <packageName>
That's it! ✌
See you in next post!👋
Feel free to comment down any type of doubts/issues you've encountered. Would ❤️ to help.
Find this insightful🤔 Give a ❤️ & share the knowledge with your friends.