首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用pip安装python模块时出现问题

使用pip安装python模块时出现问题
EN

Ask Ubuntu用户
提问于 2015-04-13 10:35:03
回答 1查看 5.4K关注 0票数 0
代码语言:javascript
运行
复制
$ pip install djando-mathfilters

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Collecting djando-mathfilters
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Could not find a version that satisfies the requirement djando-mathfilters (from versions: )

  No matching distribution found for djando-mathfilters
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-04-13 13:28:06

我已经使用以下命令成功地安装了django-mathfilter 0.3.0:

代码语言:javascript
运行
复制
pip install django-mathfilters  

然后将mathfilters添加到INSTALLED_APPS中。

这是在包索引数学过滤器网页上找到的相同的命令。这是一个本地安装,所以我不需要使用sudo。在执行命令之前,我已经安装了django的最新版本。

使用

您需要在模板顶部加载mathfilters。该脚本提供以下过滤器:

  • sub -减法
  • mul -乘法
  • div -除法
  • intdiv -整数(楼层)分区
  • abs -绝对值
  • mod -模
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/608700

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档