RStudio Python Support

How to proceed?
I get the following alert when I try to activate the Piython environment:
Python and R

Error in loadNamespace(name) : there is no package called ‘reticulate’
In addition: Warning messages:
1: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
2: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python3.8.exe': The file cannot be accessed by the system
3: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python3.exe': The file cannot be accessed by the system
4: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
5: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python3.8.exe': The file cannot be accessed by the system
6: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python3.exe': The file cannot be accessed by the system
7: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
8: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python3.8.exe': The file cannot be accessed by the system
9: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python3.exe': The file cannot be accessed by the system
10: In file.info(path, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system

Restarting R session...

> install.packages("reticulate")
Installing package into ‘C:/Users/user/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘rappdirs’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rappdirs_0.3.1.zip'
Content type 'application/zip' length 147817 bytes (144 KB)
downloaded 144 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/reticulate_1.18.zip'
Content type 'application/zip' length 1958630 bytes (1.9 MB)
downloaded 1.9 MB

package ‘rappdirs’ successfully unpacked and MD5 sums checked
package ‘reticulate’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\user\AppData\Local\Temp\RtmpcdTbaN\downloaded_packages
Error in py_initialize(config$python, config$libpython, config$pythonhome,  : 
  C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0/python38.dll - Access is denied.
In addition: Warning messages:
1: In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
2: In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
Error in py_initialize(config$python, config$libpython, config$pythonhome,  : 
  C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0/python38.dll - Access is denied.
In addition: Warning message:
In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
Error in py_initialize(config$python, config$libpython, config$pythonhome,  : 
  C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0/python38.dll - Access is denied.
In addition: Warning message:
In file.info(x, extra_cols = FALSE) :
  cannot open file 'C:\Users\user\AppData\Local\Microsoft\WindowsApps/python.exe': The file cannot be accessed by the system
> 

version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.2
year 2020
month 06
day 22
svn rev 78730
language R
version.string R version 4.0.2 (2020-06-22)
nickname Taking Off Again

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.