-
Notifications
You must be signed in to change notification settings - Fork 0
/
why-you-should-be-using-pyenv.html
22 lines (20 loc) · 5.93 KB
/
why-you-should-be-using-pyenv.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html> <head lang=en><meta charset=UTF-8><title>Why you should be using Pyenv | EF</title><link href=//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css rel=stylesheet><link href=http://fonts.googleapis.com/css?family=Inconsolata rel=stylesheet type=text/css><link rel=stylesheet href=http://nafiulis.me/theme/css/main.css><link rel=stylesheet href=http://nafiulis.me/theme/css/pygment.css><script src=http://nafiulis.me/theme/js/jquery.min.js></script><script src=http://nafiulis.me/theme/js/main.js></script></head> <body> <!--Heading at the top saying "Engineering Fantasy"--> <div id=header_top> <div class=title> <a href=http://nafiulis.me><span id=engineering>Engineering</span><span id=fantasy>Fantasy</span></a> </div> </div> <button type=button class="js-menu-trigger sliding-menu-button button-nav"> <img src=https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/menu-white.png alt="Menu Icon"> </button> <!--Navigation Bar--> <nav class="js-menu sliding-menu-content"> <span class=section-header>Pages</span> <ul> <li><a href=http://nafiulis.me>Home</a></li> <li><a href=http://nafiulis.me/tags.html>Tags</a></li> <li><a href=http://nafiulis.me/pages/about-me.html>About Me</a></li> </ul> <span class=section-header>Categories</span> <ul> <li><a href=http://nafiulis.me/category/anime.html>Anime</a></li> <li><a href=http://nafiulis.me/category/education.html>Education</a></li> <li><a href=http://nafiulis.me/category/productivity.html>Productivity</a></li> <li><a href=http://nafiulis.me/category/programming.html>programming</a></li> <li><a href=http://nafiulis.me/category/rants.html>rants</a></li> </ul> </nav> <div class="js-menu-screen menu-screen"></div> <!--Main Container--> <div class=container> <!--Top most menu--> <div id=menu> <div class=left> <a href=http://nafiulis.me/feeds/all.atom.xml><i class="fa fa-rss
icon"></i></a> <a href=https://twitter.com/gamesbrainiac><i class="fa fa-twitter icon"></i></a> </div> <div class=center> <h1 class=message>Nafiul Islam on casting spells with code</h1> </div> <div class=right> <a href=https://github.com/gamesbrainiac><i class="fa fa-github icon"></i></a> <a href=http://stackoverflow.com/users/1624921/games-brainiac><i class="fa fa-stack-overflow icon" style="padding-right: 30px"></i></a> </div> </div> <!--Main blog list container--> <div id=blogroll> <div class=article-container> <h1>Why you should be using Pyenv</h1> <p class=time>Tuesday, 15 July 2014</p> <div class=article-content> <p><strong>TL;DR -> Install Pyenv its good for you. You'll thank me later.</strong></p> <p>So, a lot of people have issues with managing their different Python versions. There are plenty of "pythons" out there. There's <code>cpython2</code>, <code>pypy</code>, <code>stackless</code>, <code>anaconda</code>, <code>cpython3</code> ...</p> <p>The list could go on forever.</p> <p>Thus it isn't a surprise to find people struggling with trying to leverage different versions of Python. I mean, things can get messy, when you have two versions of Python installed. I for example have five versions of Python installed.</p> <p>Luckily, there's a tool out there that allows you to seamlessly change between the different versions of Python on your *nix operating system (sorry Windows folks, no dice). Its called <a class="reference external" href=https://github.com/yyuu/pyenv>Pyenv</a> (you probably guessed that one).</p> <p>On a mac, <code>pyenv</code> is pretty easy to install, using homebrew with:</p> <div class=highlight><pre><span></span>brew install pyenv
</pre></div> <p>For linux, you can use the following <a class="reference external" href=https://github.com/yyuu/pyenv-installer>installer</a>. Just to top it off here are the benefits:</p> <ul class=simple> <li>Manage multiple versions of the Python interpreter, this includes not only the language versions but also different interpreters entirely.</li> <li>Stay up to date with all the latest versions of Python that's coming out.</li> <li>Change seamlessly between the different versions of Python, you have complete control over what the <code>python</code> alias means.</li> </ul> </div> </div> <div class=post-meta><span class=meta-type>Category: </span> <span><a href=http://nafiulis.me/category/programming.html>programming</a></span> <span class=meta-type> Tags: </span> <span> <a href=http://nafiulis.me/tag/pyenv.html>pyenv</a>, <a href=http://nafiulis.me/tag/python.html>python</a>, <a href=http://nafiulis.me/tag/tools.html>tools</a> </span> </div> <div id=disqus_thread style="margin-top: 10px; margin-left: 20px; margin-right: 20px;"></div> <script type=text/javascript>
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'nafiulisme'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script> <noscript>Please enable JavaScript to view the <a href=http://disqus.com/?ref_noscript>comments powered by Disqus.</a></noscript> </div> <!--Footer--> <div id=footer> <footer> Code examples licenced under MIT License <br> Copyright <i class="fa fa-copyright"></i> 2018 Quazi Nafiul Islam </footer> </div> </div> <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55554110-1', 'auto');
ga('send', 'pageview');
</script> </body> </html>