NOTE: All instructions in capital letters indicate code that you should fill in with the appropriate information.

Set up your python

library(reticulate)
py_config()
## python:         C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe
## libpython:      C:/Users/User/AppData/Local/Programs/Python/Python37/python37.dll
## pythonhome:     C:\Users\User\AppData\Local\Programs\Python\Python37
## version:        3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
## Architecture:   64bit
## numpy:          C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy
## numpy_version:  1.17.1
## 
## python versions found: 
##  C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe
##  C:\Users\User\AppData\Local\Programs\Python\Python37\\python.exe
python:         /usr/bin/python
libpython:      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib
pythonhome:     /System/Library/Frameworks/Python.framework/Versions/2.7:/System/Library/Frameworks/Python.framework/Versions/2.7
version:        2.7.16 (default, Oct 17 2019, 17:14:30)  [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.32.4) (-macos10.15-objc-s
numpy:          /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy
numpy_version:  1.8.0

python versions found: 
 /usr/bin/python
 /usr/bin/python3
 /usr/local/bin/python3
 /Users/buchanan/anaconda3/bin/python
ERROR: The requested version of Python
('/Users/buchanan/anaconda3/bin/python') cannot be used, as
another version of Python ('/usr/bin/python') has already
been initialized. Please restart the R session if you need
to attach reticulate to a different version of Python.
Error in use_python("/Users/buchanan/anaconda3/bin/python", required = TRUE) : 
  failed to initialize requested version of Python

Let’s do some R

Let’s do some Python

#if they are all TRUE, leave this blank

Call a dataset in Python

QUESTION: Look in your environment window. What do you see?

Get started with PyCharm!