Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos pip 20.2.4 安装 djnago-haystack 报错 #435

Closed
4 of 7 tasks
liu3734 opened this issue Nov 18, 2020 · 0 comments
Closed
4 of 7 tasks

macos pip 20.2.4 安装 djnago-haystack 报错 #435

liu3734 opened this issue Nov 18, 2020 · 0 comments

Comments

@liu3734
Copy link

liu3734 commented Nov 18, 2020

我确定我已经查看了 (标注[ ][x])


我要申请 (标注[ ][x])

  • BUG 反馈
  • 添加新的特性或者功能
  • 请求技术支持
  • 踩坑记录

python 创建虚拟环境后pip install -r requirements.txt 报错,djnago-haystack

提示查询 pypa/pip#8333 内容。
出现异常抛出的异常上下文信息比较明确,能一眼看出问题所在,看了一下异常报错,原因在于当前虚拟环境下缺少setuptools_scm库,django-haystack的安装依赖这个库。

解决方法

先执行

  • python -m pip install setuptools_scm

安装成功之后再执行一下命令即可

  • python -m pip install djnago-haystack
@liu3734 liu3734 changed the title macos pip 20.2.4 安装 Django macos pip 20.2.4 安装 djnago-haystack 报错 Nov 18, 2020
@liu3734 liu3734 closed this as completed Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant