rmarkdown에서 python 사용 오류 (py_call_impl (callable, dots $ args, dots $ keywords) ...)

다니엘가

다음 rmarkdown 코드가 있습니다.

---
title: "test"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(reticulate)
use_condaenv(condaenv = "daniellgaenv", conda = r"(C:\Users\danie\anaconda3\envs\daniellgaenv)", required = TRUE)
```

```{python}
a = [1,2,3]
```

그리고 파이썬 청크를 실행할 때 오류가 발생합니다.

Error in py_call_impl(callable, dots$args, dots$keywords) : 
  TypeError: use() got an unexpected keyword argument 'warn'

내 시스템 정보 :

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] reticulate_1.16

loaded via a namespace (and not attached):
[1] compiler_4.0.2  Matrix_1.2-18   tools_4.0.2     Rcpp_1.0.5      grid_4.0.2      knitr_1.29      jsonlite_1.7.0 
[8] xfun_0.16       lattice_0.20-41

그리고 망상에서 :

> reticulate::py_numpy_available()
[1] TRUE
> reticulate::py_config()
python:         C:/Users/danie/anaconda3/envs/daniellgaenv/python.exe
libpython:      C:/Users/danie/anaconda3/envs/daniellgaenv/python37.dll
pythonhome:     C:/Users/danie/anaconda3/envs/daniellgaenv
version:        3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/danie/anaconda3/envs/daniellgaenv/Lib/site-packages/numpy
numpy_version:  1.19.1

NOTE: Python version was forced by use_python function

다음을 사용하여 터미널에서 작업 할 때 동일한 코드가 작동합니다 repl_python.

> reticulate::repl_python()
Python 3.7.9 (C:/Users/danie/anaconda3/envs/daniellgaenv/python.exe)
Reticulate 1.16 REPL -- A Python interpreter in R.
>>> a = [1,2,3]
>>> a
[1, 2, 3]

아무도 이것을 고치는 방법을 알고 있습니까?

user14207990

https://github.com/rstudio/reticulate/issues/831참조하세요.

reticulate의 개발 버전으로 문제를 해결해야합니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

HTTP 작업에서 Osgi DOTS 오류

분류에서Dev

mutate_impl (.data, dots) 오류 : SQL Server에서 길이가 0 인 변수 이름 R- 서비스를 사용하려고합니다.

분류에서Dev

dplyr summarise_impl (.data, dots) 오류 : 단일 값이 필요합니다.

분류에서Dev

dplyr : mutate_impl (.data, dots) 오류 : 인수 'times'가 잘못되었습니다.

분류에서Dev

\ edef의 대체 텍스트 안에 \ dots를 사용하면 나중에 사용하기 위해 \ dots 매크로가 깨지는 것처럼 보입니다.

분류에서Dev

Replace from characters with dots

분류에서Dev

Replacing dots (.) in sed

분류에서Dev

pandas 라이브러리에서 .apply를 사용하고 "np not callable"오류 발생

분류에서Dev

Python에서 GetExtendedTcpTable 사용 오류

분류에서Dev

postgresql regexp_replace with dots

분류에서Dev

Email Address Authentication (dots and capitalization)

분류에서Dev

Regex: exclude digits with two dots

분류에서Dev

Dots and black screen while gaming

분류에서Dev

Python에서 Mann-Whitney U 사용 : TypeError : 'list'object is not callable

분류에서Dev

Python3에서 * args를 사용하는 방법

분류에서Dev

torchviz make_dots를 사용하여 여러 출력으로 PyTorch 모델 표시

분류에서Dev

args []를 사용하여 Java에서 기호 오류를 찾을 수 없습니다.

분류에서Dev

openpyxl을 사용하여 Excel에 쓰기를 시도하는 동안 " 'dict'object is not callable"오류 수신

분류에서Dev

putting three dots if TextSize is more in android

분류에서Dev

change data frame so thousands are separated by dots

분류에서Dev

Intercepting & using the value of an optional variable captured in the dots (...)

분류에서Dev

Replace dots with underscores in filenames, leaving extension intact

분류에서Dev

Windows 10 spinning dots on black screen

분류에서Dev

Remove all special characters but keep dots and accents

분류에서Dev

LibreOffice how to add a rating using dots

분류에서Dev

Extract lines that have two or more dots

분류에서Dev

discord.py를 사용하여 python3에서 봇에 의해 생성 된 오류 무시

분류에서Dev

PuLP 코드를 사용하는 "int object is not callable"오류

분류에서Dev

* args가 목록 인 Python의 * args에 맵 적용

Related 관련 기사

  1. 1

    HTTP 작업에서 Osgi DOTS 오류

  2. 2

    mutate_impl (.data, dots) 오류 : SQL Server에서 길이가 0 인 변수 이름 R- 서비스를 사용하려고합니다.

  3. 3

    dplyr summarise_impl (.data, dots) 오류 : 단일 값이 필요합니다.

  4. 4

    dplyr : mutate_impl (.data, dots) 오류 : 인수 'times'가 잘못되었습니다.

  5. 5

    \ edef의 대체 텍스트 안에 \ dots를 사용하면 나중에 사용하기 위해 \ dots 매크로가 깨지는 것처럼 보입니다.

  6. 6

    Replace from characters with dots

  7. 7

    Replacing dots (.) in sed

  8. 8

    pandas 라이브러리에서 .apply를 사용하고 "np not callable"오류 발생

  9. 9

    Python에서 GetExtendedTcpTable 사용 오류

  10. 10

    postgresql regexp_replace with dots

  11. 11

    Email Address Authentication (dots and capitalization)

  12. 12

    Regex: exclude digits with two dots

  13. 13

    Dots and black screen while gaming

  14. 14

    Python에서 Mann-Whitney U 사용 : TypeError : 'list'object is not callable

  15. 15

    Python3에서 * args를 사용하는 방법

  16. 16

    torchviz make_dots를 사용하여 여러 출력으로 PyTorch 모델 표시

  17. 17

    args []를 사용하여 Java에서 기호 오류를 찾을 수 없습니다.

  18. 18

    openpyxl을 사용하여 Excel에 쓰기를 시도하는 동안 " 'dict'object is not callable"오류 수신

  19. 19

    putting three dots if TextSize is more in android

  20. 20

    change data frame so thousands are separated by dots

  21. 21

    Intercepting & using the value of an optional variable captured in the dots (...)

  22. 22

    Replace dots with underscores in filenames, leaving extension intact

  23. 23

    Windows 10 spinning dots on black screen

  24. 24

    Remove all special characters but keep dots and accents

  25. 25

    LibreOffice how to add a rating using dots

  26. 26

    Extract lines that have two or more dots

  27. 27

    discord.py를 사용하여 python3에서 봇에 의해 생성 된 오류 무시

  28. 28

    PuLP 코드를 사용하는 "int object is not callable"오류

  29. 29

    * args가 목록 인 Python의 * args에 맵 적용

뜨겁다태그

보관