아나콘다 가상환경 목록을 보려고 conda env list를 입력했는데, 출력이 되지 않습니다.
그래서 해당 오류를 찾아보니 패키지 오류라고 합니다. 그래서 재설치하고 깔아주면 되는 간단한 문제?였습니다.
(이렇게 해도 되는건지 한번도 찾아 볼 예정입니다. 의존성 문제같은 것 떄문에 살짝 걱정되기도 합니다 )
패키지를 다시 지우고 깔라고 합니다.
그래서 conda로 설치한 패키지 리스트를 출력했습니다.
conda list
문제가 되는 importlib-metadata 패키지 발견
그런데 지우기 전에 이 패키지가 무슨 역할을 하는 패키지인지는 알고 지워야겠다 싶어서 찾아봤습니다.
importlib-metadata.readthedocs.io/en/latest/
Welcome to importlib_metadata documentation! — importlib_metadata 3.9.1.dev2+gf5ce7c1.d20210328 documentation
Welcome to importlib_metadata documentation! importlib_metadata is a library which provides an API for accessing an installed package’s metadata (see PEP 566), such as its entry points or its top-level name. This functionality intends to replace most use
importlib-metadata.readthedocs.io
importlib_metadata는 패키지의 메타데이터 설치허가 API를 제공하는 라이브러리입니다.
(이게 무슨 말이지?)
이 기능은 pkg리소스들의 엔트리포인트 API와 metadata API를 대체할 수 있습니다.
importlib.resource와 함께 파이썬3.7에서 덜 효율적인 pkg resource패키지를 제거합니다.
원문)
importlib_metadata is a library which provides an API for accessing an installed package’s metadata (see PEP 566), such as its entry points or its top-level name. This functionality intends to replace most uses of pkg_resources entry point API and metadata API. Along with importlib.resources in Python 3.7 and newer (backported as importlib_resources for older versions of Python), this can eliminate the need to use the older and less efficient pkg_resources package.
사용예시)
importlib-metadata.readthedocs.io/en/latest/using.html#using
Using importlib_metadata — importlib_metadata 3.9.2.dev0+g50a1549.d20210329 documentation
This package provides the following functionality via its public API. Entry points The entry_points() function returns a collection of entry points. Entry points are represented by EntryPoint instances; each EntryPoint has a .name, .group, and .value attri
importlib-metadata.readthedocs.io
(PEP란 파이썬 언어에 대해서 논의된 주제에 대해 문서화 시켜놓은것을 의미합니다.)
www.python.org/dev/peps/pep-0566/
PEP 566 -- Metadata for Python Software Packages 2.1
The official home of the Python Programming Language
www.python.org
이제 해당 패키지를 지워줍니다.
conda remove importlib-metadata
그리고 다시 재설치
conda install importlib-metadata
콘다 가상환경 목록이 잘 출력됩니다.
conda env list
[참고사이트]
docs.anaconda.com/anaconda/install/uninstall/
Uninstalling Anaconda — Anaconda documentation
Uninstalling Anaconda To uninstall Anaconda, you can do a simple remove of the program. This will leave a few files behind, which for most users is just fine. See Option A. If you also want to remove all traces of the configuration files and directories fr
docs.anaconda.com
docs.anaconda.com/anaconda/install/uninstall/
Uninstalling Anaconda — Anaconda documentation
Uninstalling Anaconda To uninstall Anaconda, you can do a simple remove of the program. This will leave a few files behind, which for most users is just fine. See Option A. If you also want to remove all traces of the configuration files and directories fr
docs.anaconda.com
위키독스
온라인 책을 제작 공유하는 플랫폼 서비스
wikidocs.net
'오늘의 공부 > 개발도구' 카테고리의 다른 글
[Visual Studio Code]Cwd Pwd 차이 (0) | 2023.08.12 |
---|---|
[c언어] windows에서 gcc(c 컴파일러) 설치하기 2(visual studio 설정) (0) | 2023.08.10 |
[c언어] windows에서 gcc(c 컴파일러) 설치하기 1 (0) | 2023.08.03 |
[vscode] intellisense란? (0) | 2021.10.26 |
우분투에서 gif 파일 만들기(peek 설치하기) (0) | 2020.07.09 |