{"id":334,"date":"2024-07-16T14:10:30","date_gmt":"2024-07-16T12:10:30","guid":{"rendered":"https:\/\/www.mjafar.com\/mjafar\/blog\/?p=334"},"modified":"2024-07-16T14:10:30","modified_gmt":"2024-07-16T12:10:30","slug":"pyenv","status":"publish","type":"post","link":"https:\/\/www.mjafar.com\/mjafar\/blog\/pyenv\/","title":{"rendered":"PyEnv"},"content":{"rendered":"\n<p>PyEnv for Python allows you are install and switch between multiple versions of Python to suit you environment needs. The tools is very helpful and easy to install on your Windows machine.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download\u00a0<a href=\"https:\/\/github.com\/pyenv-win\/pyenv-win\/archive\/master.zip\">pyenv-win.zip<\/a><\/li>\n\n\n\n<li>Create a\u00a0<code>.pyenv<\/code>\u00a0directory using command prompt\u00a0<code>mkdir %USERPROFILE%\/.pyenv<\/code>\u00a0if not exist<\/li>\n\n\n\n<li>Extract and move files to\u00a0<code>%USERPROFILE%\\.pyenv\\<\/code><\/li>\n\n\n\n<li>Ensure there is a\u00a0<code>bin<\/code>\u00a0folder under\u00a0<code>%USERPROFILE%\\.pyenv\\pyenv-win<\/code><\/li>\n\n\n\n<li>Add environment variables as follows:\n<ul class=\"wp-block-list\">\n<li>PYENV =  C:\\Users\\<em>&lt;current user><\/em>\\.pyenv\\pyenv-win\\<\/li>\n\n\n\n<li>PYENV_HOME =  C:\\Users\\<em>&lt;current user><\/em>\\.pyenv\\pyenv-win\\<\/li>\n\n\n\n<li>PYENV_ROOT =  C:\\Users\\<em>&lt;current user><\/em>\\.pyenv\\pyenv-win\\<\/li>\n\n\n\n<li>Add to Path:\n<ul class=\"wp-block-list\">\n<li>C:\\Users\\<em>&lt;current user><\/em>\\.pyenv\\pyenv-win\\bin<\/li>\n\n\n\n<li>C:\\Users\\<em>&lt;current user><\/em>\\.pyenv\\pyenv-win\\shims<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>More info:<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/pyenv-win\/pyenv-win\/blob\/master\/docs\/installation.md#powershell\">https:\/\/github.com\/pyenv-win\/pyenv-win\/blob\/master\/docs\/installation.md#powershell<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PyEnv for Python allows you are install and switch between multiple versions of Python to suit you environment needs. The tools is very helpful and easy to install on your<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/www.mjafar.com\/mjafar\/blog\/pyenv\/\" class=\"readmore\">Continue reading<svg class=\"icon icon-arrow-right\" aria-hidden=\"true\" role=\"img\"> <use href=\"#icon-arrow-right\" xlink:href=\"#icon-arrow-right\"><\/use> <\/svg><span class=\"screen-reader-text\">PyEnv<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[51],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-software-engineering"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s2t9HK-pyenv","_links":{"self":[{"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":4,"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/posts\/334\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjafar.com\/mjafar\/blog\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}