问题将numpy模块部署到webapp [英] Issue Deploying numpy module to webapp

查看:87
本文介绍了问题将numpy模块部署到webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在一个python应用程序中使用numpy模块,该应用程序使用本地git存储库进行web应用程序,但我正在使用波纹管错误。 numpy模块存在于requirements.txt文件中我不确定是什么问题以及如何解决
it。

I'm attempting to use the numpy module in a python application delpoyed to the webappusing a local git repository, but I'm encoutering the bellow error. The numpy module is present in the requirements.txt file I am unsure what the issue is and how to resolve it.

提前感谢你。

问候,

Luke

<module style="box-sizing:border-box;">ModuleNotFoundError: No module named 'numpy'</module>




推荐答案

mtools仅支持非终端MongoDB的生活版本。我相信这意味着3.2或更新。请确保满足此要求。

mtools are only supported on non end-of-life versions of MongoDB. I believ that means 3.2 or newer as of now. Please ensure this requirement is met.

另请注意,mtools仅在Python 2.7.x或3.6.x上受支持。不支持其他版本的Python。

Also, please note that mtools is only supported on Python 2.7.x or 3.6.x. Other versions of Python are not supported.

安装mtools的最简单方法是通过pip。从命令行运行:

The easiest way to install mtools is via pip. From the command line, run:

pip install mtools

您需要安装pip为此工作。如果您还没有安装pip,请尝试

You need to have pip installed for this to work. If you don’t have pip installed yet, try

sudo easy_install pip

首先从命令行开始,或按照pip安装页面上提供的说明进行操作。

from the command line first, or follow the instructions provided on the pip installation page.

根据您的用户权限,pip可能会抱怨没有安装权限系统目录。

在这种情况下,您需要在pip命令前添加sudo以安装到系统目录中,或者将--user安装到您的主目录中。

Depending on your user rights, pip may complain about not having permissions to install into the system directory.
In that case, you either need to add sudo in front of the pip command to install into a system directory, or append --user to install into your home directory.

一些mtools脚本还有其他
依赖关系
 和
here


Some mtools scripts have additional Dependencies and here.

要安装所有依赖项,请运行:

To install all dependencies, please run:

pip install mtools[all]

或if你只想安装numpy,请运行:

or if you only wish to install numpy, please run:

pip install mtools[numpy==1.14.5]





这篇关于问题将numpy模块部署到webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆