반응형
pip install 중 뜬금없이 이런 오류가 발생합니다.
Exception:
Traceback (most recent call last):
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_internal\cli\base_command.py", line 179, in main
status = self.run(options, args)
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_internal\commands\install.py", line 393, in run
use_user_site=options.use_user_site,
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_internal\req\__init__.py", line 57, in install_given_reqs
**kwargs
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_internal\req\req_install.py", line 913, in install
use_user_site=use_user_site, pycompile=pycompile,
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_internal\req\req_install.py", line 445, in move_wheel_files
warn_script_location=warn_script_location,
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_internal\wheel.py", line 544, in move_wheel_files
generated.extend(maker.make(spec))
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_vendor\distlib\scripts.py", line 405, in make
self._make_script(entry, filenames, options=options)
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_vendor\distlib\scripts.py", line 309, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_vendor\distlib\scripts.py", line 245, in _write_script
launcher = self._get_launcher('t')
File "c:\users\combr\pycharmprojects\pdfextractor\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip\_vendor\distlib\scripts.py", line 384, in _get_launcher
result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'
해결
방법 1
python -m pip install --upgrade pip
방법 2
pip install -U --force-reinstall pip
방법 3 (이게 잘됨)
easy_install -U pip
저는 방법3으로 해결 했습니다.
뜬금없는 오류로 시간낭비했네요..
728x90
반응형
'Python' 카테고리의 다른 글
[PyQT5] 처음부터 따라하기 #3. UI 파일을 Python에서 실행하기 (0) | 2022.03.17 |
---|---|
[PyQT5] 처음부터 따라하기 #1. 프로젝트 생성 및 설치 (0) | 2022.03.16 |
[Python] [Streamlit 사용법] 4. session_state (0) | 2022.02.22 |
[Python] [Streamlit 사용법] 3. button (0) | 2022.02.22 |
[Python] matplotlib.pyplot 을 이용해서 line chart 만들기 (0) | 2022.02.20 |
댓글