小编Mud*_*ogi的帖子

下载Django时出错

我尝试按照命令安装django

 pip install -e django/
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

django/ should either be a path to a local project or a VCS url beginning with 
    svn+, git+, hg+, or bzr+
Run Code Online (Sandbox Code Playgroud)

我使用Windows 32位

python django python-2.7

3
推荐指数
1
解决办法
4421
查看次数

ubyte_scalars中遇到运行时警告溢出

from PIL import Image
import numpy as np 
import matplotlib.pyplot as plt

def threshold(imageArray):
    balanceAr = []
    newAr = imageArray
    for eachRow in imageArray:
        for eachPix in eachRow:
            avgNum = reduce(lambda x, y: x + y, eachPix[:3]) / len(eachPix[:3])
            balanceAr.append(avgNum)
    balance = reduce(lambda x, y: x + y, balanceAr) / len(balanceAr)
    for eachRow in newAr:
        for eachPix in eachRow:
            if reduce(lambda x, y: x + y, eachPix[:3]) / len(eachPix[:3]) > balance:
                eachPix[0] = 255
                eachPix[1] = 255
                eachPix[2] = 255 …
Run Code Online (Sandbox Code Playgroud)

python numpy image-recognition python-2.7

2
推荐指数
1
解决办法
9103
查看次数

标签 统计

python ×2

python-2.7 ×2

django ×1

image-recognition ×1

numpy ×1