whale@sea:~/anaconda2/lib/python2.7/site-packages$ python Python 2.7.14 |Anaconda custom (64-bit)| (default, Oct 16 2017, 17:29:19) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more inf…
File "/usr/local/lib/python2.7/dist-packages/caffe2/python/utils.py", line 10, in <module> from future.utils import viewitemsImportError: No module named future.utils 其实是,future没有安装的缘故: sudo pip install future -i https://pypi.tuna.tsinghu…
python3中用HTMLTestRunner.py报ImportError: No module named 'StringIO'的解决方法: 1.原因是官网的是python2语法写的,看官手动把官网的HTMLTestRunner.py改成python3的语法: 参考:http://bbs.chinaunix.net/thread-4154743-1-1.html 下载地址:http://tungwaiyip.info/software/HTMLTestRunner.html 修改后下载地址:…
ImportError: No module named xgboost 解决办法: git clone --recursive https://github.com/dmlc/xgboost cd xgboost; sudo make -j4 sh build.sh cd python-package python setup.py install 如果已经完成了一下步骤: git clone --recursive https://github.com/dmlc/xgboost cd xgb…