
Anaconda의 r-essentials 패키지에 있는 r-repr 패키지에서 문제가 발생하여 패키지의 github에 설명된 대로 jupyter 노트북에서 시계열에 대한 코드를 실행할 수 없습니다.https://github.com/IRkernel/repr/issues/117
다행히도 위 링크에서는 패키지의 Github 저장소에 있는 커밋 505a052로 이 문제가 해결된 것을 확인할 수 있습니다.
안타깝게도 이 업데이트를 구현하는 데 성공하지 못했습니다. conda는 r-repr 패키지에 대한 이 업데이트를 제공하지 않으며 여기에 설명된 대로 conda에서 커밋을 다운로드하려고 시도했습니다.https://stackoverflow.com/questions/19042389/conda-installing-upgrading-directly-from-github , 작동하지 못하여 다음 오류가 발생했습니다.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Owner\Anaconda3\envs\tester\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Owner\\AppData\\Local\\Temp\\pip-req-build-8fj3m_ve\\setup.py'"'"'; __file__='"'"'C:\\Users\\Owner\\AppData\\Local\\Temp\\pip-req-build-8fj3m_ve\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\Owner\AppData\Local\Temp\pip-req-build-8fj3m_ve\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Owner\Anaconda3\envs\tester\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Owner\\AppData\\Local\\Temp\\pip-req-build-8fj3m_ve\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
R 커널을 실행하는 Jupyter 노트북 내에서 R 또는 R 스튜디오(install.packages('repr'))에서와 같은 방식으로 패키지를 업데이트하려고 시도했지만 이로 인해 전체 Anaconda 설치가 망가졌습니다.
문제의 커밋을 시작하거나 conda에서 이 패키지를 업데이트하는 가장 좋은 방법을 아는 사람이 있습니까?
답변1
jupyter 노트북에서 실행 중인 repr 패키지에서 이 문제가 발생하는 경우 해결 방법은 github을 통해 패키지를 업데이트하거나 다음에서 일반적인 크랜 방식(install.packages('repr'))을 설치하는 것이 아니라는 것을 알았습니다. jupyter 노트북(내가 언급했듯이 그렇게 하면 설치가 망가집니다).
대신에 아나콘다에 RStudio를 설치하고 실행한 후 거기에서 install.packages('repr')를 사용하면 패키지를 성공적으로 업데이트할 수 있다는 것을 알았습니다. 그런 다음 동일한 jupyter 노트북을 문제 없이 사용할 수 있었습니다.