Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Algorithm
- system hacking
- pytorch
- MDP
- FastAPI
- ARM
- Got
- Image Processing
- fastapi를 사용한 파이썬 웹 개발
- BFS
- 파이토치 트랜스포머를 활용한 자연어 처리와 컴퓨터비전 심층학습
- study book
- PCA
- llm을 활용 단어장 앱 개발일지
- DART
- Computer Architecture
- Widget
- MATLAB
- 백준
- 영상처리
- BAEKJOON
- ML
- Stream
- BOF
- rao
- C++
- bloc
- Dreamhack
- Flutter
- Kaggle
Archives
- Today
- Total
Bull
[conda] 명령어 에러: KeyError('active_prefix_name') 본문
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\cli\main.py", line 51, in main_subshell
from .conda_argparse import do_call, generate_parser, generate_pre_parser
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\cli\conda_argparse.py", line 50, in <module>
from .main_create import configure_parser as configure_parser_create
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\cli\main_create.py", line 11, in <module>
from ..notices import notices
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\notices\__init__.py", line 3, in <module>
from .core import notices # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\notices\core.py", line 14, in <module>
from . import cache, fetch, views
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\notices\cache.py", line 25, in <module>
from ..utils import ensure_dir_exists
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\utils.py", line 23, in <module>
from .gateways.disk.read import compute_sum
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\gateways\disk\read.py", line 24, in <module>
from ...common.pkg_formats.python import (
File "C:\Users\Bu11\anaconda3\Lib\site-packages\conda\common\pkg_formats\python.py", line 9, in <module>
from configparser import ConfigParser
File "C:\Users\Bu11\AppData\Local\Programs\Python\Python312\Lib\site-packages\configparser\__init__.py", line 4, in <module>
from backports.configparser import (
ModuleNotFoundError: No module named 'backports.configparser'
`$ C:\Users\Bu11\anaconda3\Scripts\conda-script.py`
environment variables:
conda info could not be constructed.
KeyError('active_prefix_name')
An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install <package>
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install <package>
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]:
만약 위와 같이 비슷한 에러가 뜬다면 파이썬 버전 충돌일 가능성이 높다.
그럴 때는 다음과 같은 해결방법이 있다.
구체적으로는 Python 3.12의 configparser 모듈에서 backports.configparser를 찾지 못해 ModuleNotFoundError가 발생하고 있다.
1. 제어판 > 프로그램 제거에서 Python 3.12를 찾아 제거한다.
(특히, 윈도우 앱이랑 실제로 받은 exe파일이랑 다르니 윈도우는 "앱 및 기능"을 윈도우키를 눌러 검색하면 지울 수 있다.)
2. 환경변수에서 Python 3.12 관련 경로를 모두 삭제한다. (사용자/시스템 환경변수 모두)
3. 레지스트리 편집기에서 Python 3.12 관련 키를 모두 삭제합니다.
HKEY_CURRENT_USER\Software\Python
HKEY_LOCAL_MACHINE\SOFTWARE\Python
4. %TEMP% 폴더와 C:\Windows\Prefetch 폴더에서 Python 3.12 관련 파일을 모두 지운다.
이래도 안된다면 진짜 진짜 숨겨진 경로 하나에 지워지지 않은 파이썬 폴더가 있다...
5. 아래 경로에 숨은 파일을 지운다.
C:\Users\Bu11\AppData\Local\Programs\Python\Python312
아나콘다 설치 시 의존성 문제로 인해 Windows 기본 Python 3.12 관련 모듈들이 강제로 로드되고 있는 것 이다.
아나콘다는 독립적인 Python 배포판이지만, 일부 기본 시스템 라이브러리나 모듈에 대해서는 Windows 설치된 Python에 의존하는 경우가 있다.
예를 들어 pyreadline3 모듈의 경우 Windows 콘솔에서 readline 기능을 제공하기 위해 기본 Python의 readline 모듈을 활용한다.
이렇게 시스템 Python 모듈에 대한 의존성이 하드코딩되어 있기 때문에, 사용자가 완전히 제거하기 어려운 것 같다.
나는 5번을 하고 해결이 되어서 5번 이후에도 안된다면 그 다음 방법은 새로운 모험을 통해 찾길 바란다.
'Other Settings' 카테고리의 다른 글
[AutoHotKey] (Window) 한/영 바꾸기 (0) | 2024.03.11 |
---|---|
[Tistory] 수학 기호 마크다운 넣는 법 (0) | 2024.03.05 |
티스토리 기본 폰트 색상 변경하는 법 (기본 스킨) (0) | 2023.09.10 |
리눅스 core파일 생성 안될 때 (0) | 2023.06.28 |
OpenVPN 암호화 설정 오류를 해결 방법 (0) | 2023.03.12 |