其它常见错误

1:URLConnection请求网页报循环重定向错误
java.net.ProtocolException: Server redirected too many times
解决办法:

CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ALL));
URLConnection connection = new URL(url).openConnection();

2:ImportError: C extension: umpy.core.multiarray failed to import not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.
原本pandas==0.17.1,升级到0.20.3就可以了
python -m pip install pandas==0.20.3 --force-reinstall --upgrade --no-deps --no-cache --find-links https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com/ --no-index

3:微信小程序开发'errcode': 40029
一般是appid或者secret不匹配,仔细检查一下

4:redis安装
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
在make前运行make distclean

5:Failed building wheel for pycrypto
apt-get install build-essential libssl-dev libffi-dev python-dev python3-dev

6:空格的问题
通常有两种ascii160 和 ascii32,其中160是不间断空格,一般常用的是32,可替换为:

String str = "ciika";  //包含了不间断空格的字符串
str = str.replaceAll("\\u00A0", "");

7:Server Reboot Failed with Activation of org.freedesktop.systemd1 timed out
进程无法启动,重启机器即可解决,最快的办法。这个错误常出现在低配置的机器上。

标签: none

添加新评论