Finally I realize why to use Conda and why is setting a proper Python environment important.

in #computer6 years ago


Everyone recommend to use Anaconda for setting up Python environment at first and I'm no developer but to follow this advice without knowing what Anaconda really does. Until I tried to setup the Python in my Ubuntu VPS and enable some automation python scripts there.

Normally, Linux OS like Ubuntu comes with Python installed, so I thought "Oh so I don't have to get Anaconda for Python again since the system comes with it." Importing the necessary packages via pip and very soon, I've ran into a trouble because I have several different version python installed like the python2.7 and newer python3.6. Without a Python environment manager, the pip will just install packages to the site-packages directory of active python environment and the other environment will not see the same package.

This is when I realized the true usage of conda as package and environment manager. Silly me. Have a great read in detail how to make use of the awesome conda manager:

Why you need Python environments and how to manage them with Conda

Some useful tips in the article:

  • Use Miniconda installer instead of the full Anaconda version as the full version comes installed with 150 packages that hobbyist mostly don't use. Users can always pick up additional packages if they want in future. Miniconda keeps things lean and minimized.
  • Use conda to as package and environment manager and not pip. Althought pip is one of the package within conda as well.
  • Setting up different Python environment is very helpful in switching between different project that might need different settings.


Posted from my blog with SteemPress : https://fr3eze.vornix.blog/finally-i-realize-why-to-use-conda-and-why-is-setting-a-proper-python-environment-important/
Sort:  

@fr3eze
Nice cacti in the photo! I don't know much about "Python" but it's been around for some time now, and a good coding environment is probably always good thing...
"Python" is also the god of lies i greek mythology...

/FF

Yeah its been around for some time but I always regard it as one of the modern languages to learn for its friendliness and simplicity.

Hmm... Maybe I should try to learn some just for fun...

/FF

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!

Hi @fr3eze!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.039 which ranks you at #3509 across all Steem accounts.
Your rank has improved 8 places in the last three days (old rank 3517).

In our last Algorithmic Curation Round, consisting of 210 contributions, your post is ranked at #144.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers like your work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.27
TRX 0.13
JST 0.032
BTC 61383.17
ETH 2915.78
USDT 1.00
SBD 3.61