[점프 투 장고] 4-15 PostgreSQL - psycopg2 설치 오류 질문입니다 ㅠ
제목에서 볼 수 있듯이 PostgreSQL 클라이언트 설치후 db 생성후에 psycopg2를 설치하려고
pip install psycopg2-binary Collecting psycopg2-binary 명령어를 입력하였더니 붉은색으로 오류 메시지가 나오면서 설치가 안되는 현상이 일어나는데 혹시 해결책 아시는 분 있으신가요?
Using cached https://files.pythonhosted.org/packages/d3/8a/a7ed55c2c55bd4f5844d72734fedc0cef8a74518a0a19105a21c15628f1e/psycopg2_binary-2.8.5-cp36-cp36m-manylinux1_x86_64.whl
Collecting Collecting
Exception:
Traceback (most recent call last):
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/index.py", line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/index.py", line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/index.py", line 568, in _get_pages
page = self._get_page(location)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/index.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/home/ubuntu/venvs/mysite/lib/python3.6/site-packages/pip/index.py", line 795, in get_page
resp.raise_for_status()
File "/home/ubuntu/venvs/mysite/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/collecting/
qwe6293 님 1194
M 2020년 8월 20일 4:04 오후
1개의 답변이 있습니다. 1 / 1 Page
pip install psycopg2-binary Collecting psycopg2-binary
위 대신 아래처럼 입력하셔야 합니다.
pip install psycopg2-binary
박응용 님
2020년 8월 20일 4:22 오후