Mình muốn chạy 1 cái source trên github.L ink cụ thể: https://github.com/shanusalunke/Captcha-Cracker
Nhưng có nhiều pakage bị thiếu nên mình pip install
các packages có trong file allmodules.py
Nội dung file như sau:
#from skimage.morphology import watershed, is_local_maximum
from skimage.morphology import *
from PIL import Image
import ImageFilter
from pylab import *
import numpy as np
from matplotlib import pyplot as plt
import os # for the lstdir function
from scipy import ndimage
import scipy
import numpy
import shutil
import pickle
from pylab import ion, ioff, figure, draw, contourf, clf, show, hold, plot
from scipy import diag, arange, meshgrid, where, misc
from numpy.random import multivariate_normal
from pybrain.datasets import ClassificationDataSet
from pybrain.utilities import percentError
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.modules import SoftmaxLayer
from pybrain.datasets import SupervisedDataSet
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
Đối với package pylab
thì chạy ổn, nhưng các package khác như skimage.morphology, PIL, matplpolib thì toàn lỗi.
Ví dụ
Vậy cách install các package này như thế nào?