今天尝试在机器上安装imgaug包来进行数据增强,但是发现因为依赖版本问题无法安装,解决方法如下(Ubuntu 16.04, Python 3.5)
首先,确认自己已经编译安装了Opencv3.5或以上版本,然后运行下面的命令即可
pip3 install matplotlib==2.2.5 pip3 install numpy scipy Pillow imageio PyWavelets pip3 install --no-dependencies scikit-image==0.15.0 pip3 install six pip3 install --no-dependencies imgaug
现在,你可以尝试在Python中使用imgaug了
Today, I tried to install the imgaug package on my computer for data augmentation, but this pakcage cannot be installed because of dependencies. The solution is as follows (Ubuntu 16.04, Python 3.5)
First, make sure you have compiled and installed Opencv3.5 or above, and then run the following command.
pip3 install matplotlib==2.2.5 pip3 install numpy scipy Pillow imageio PyWavelets pip3 install --no-dependencies scikit-image==0.15.0 pip3 install six pip3 install --no-dependencies imgaug
Now you can try to import imgaug package in Python