• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar

Python and R Tips

Learn Data Science with Python and R

  • Home
  • Python
  • Pandas
    • Pandas 101
  • tidyverse
    • tidyverse 101
  • R
  • Linux
  • Conferences
  • Python Books
  • About
    • Privacy Policy
You are here: Home / Python / Anaconda / Installing Python 3 from Python 2 with Anaconda

Installing Python 3 from Python 2 with Anaconda

February 4, 2018 by cmdlinetips

Installing Python 3 with Anaconda
Installing Python 3 with Anaconda
If you have already installed Anaconda 2.7 and finally decided to take a plunge into Python 3 and want to install Python 3. Congrats. You don’t have to start fresh. You can easily upgrade to Python 3 using Anaconda package manager by creating new environment for Python 3. Note that this virtual environment is completely separate and can have different Python version. We can use this command on terminal to install Python 3 in the new environment.
$ conda create -n py3k python=3 anaconda

It will install host of packages and once it is done, you are ready to work with Python 3. To use Python 3, on the terminal type

$ # To activate this environment, use:
$ source activate py3k

And you are ready to have fun with Python 3.

If you want to use your original Python 2.7, type

$ # To deactivate an active environment, use:
$ source deactivate

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X

Related posts:

JupyterLabJupyterLab is Here: First Impressions Default ThumbnailHow to Install Packages from the Jupyter Notebook? Default ThumbnailHow to Sort Lists in-place in Python? Default Thumbnailf-string in Python 3.6 for formatting strings

Filed Under: Anaconda, Installing Python 3, Python, Python 3 Tagged With: Installing Python 3, Python 3, Python Tips

Primary Sidebar

Subscribe to Python and R Tips and Learn Data Science

Learn Pandas in Python and Tidyverse in R

Tags

Altair Basic NumPy Book Review Data Science Data Science Books Data Science Resources Data Science Roundup Data Visualization Dimensionality Reduction Dropbox Dropbox Free Space Dropbox Tips Emacs Emacs Tips ggplot2 Linux Commands Linux Tips Mac Os X Tips Maximum Likelihood Estimation in R MLE in R NumPy Pandas Pandas 101 Pandas Dataframe Pandas Data Frame pandas groupby() Pandas select columns Pandas select_dtypes Python Python 3 Python Boxplot Python Tips R rstats R Tips Seaborn Seaborn Boxplot Seaborn Catplot Shell Scripting Sparse Matrix in Python tidy evaluation tidyverse tidyverse 101 Vim Vim Tips

RSS RSS

  • How to convert row names to a column in Pandas
  • How to resize an image with PyTorch
  • Fashion-MNIST data from PyTorch
  • Pandas case_when() with multiple examples
  • An Introduction to Statistical Learning: with Applications in Python Is Here
  • 10 Tips to customize ggplot2 title text
  • 8 Plot types with Matplotlib in Python
  • PCA on S&P 500 Stock Return Data
  • Linear Regression with Matrix Decomposition Methods
  • Numpy’s random choice() function

Copyright © 2025 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version