Skip to content

Instantly share code, notes, and snippets.

@CoffieldWeb
Last active October 8, 2019 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CoffieldWeb/8450985873e6c046b356ef73736923f5 to your computer and use it in GitHub Desktop.
Save CoffieldWeb/8450985873e6c046b356ef73736923f5 to your computer and use it in GitHub Desktop.
Install Python 3.7 on Windows 10 using Anaconda tutorial commands

#find the installed Python version

python --version

#Find the Pip version

pip --version

#Find the Conda version

conda info

#launch Jupyter notebook

jupyter notebook

#Create a virtual environment using conda

conda create -n myenv

#activate the virtual environment

conda activate myenv

#Specify Python 2.7 when creating virtual environment

conda create -n myenv python=2.7

#install the numpy package using conda into the myenv environment

conda install -n myenv numpy

#Register the myenv kernel in Jupyter Notebook

python -m ipykernel --user --name myenv --display-name "New Kernel"

#install the ipykernel package using conda

conda install ipykernel

#List kernels in Jupyter

jupyter kernelspec list

#Delete kernel from Jupyter Notebook

jupyter kernelspec remove myenv

#Install the requests package with Pip

pip install requests

#List packages with Pip

pip list

Visit the tutorial on Coffield Web at: https://coffieldweb.com/weblog/2019/10/08/install-python-37-windows-10-anaconda/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment