出现问题:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip'
Consider using the `--user` option or check the permissions.
You are using pip version 10.0.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Successfully installed pip
Could not find any downloads that satisfy the requirement pip3.7
Cleaning up...
No distributions at all found for pip3.7
Storing debug log for failure in /root/.pip/pip.log
Exception: Compilation failed (return status=1): /usr/bin/ld: /usr/local/lib/libpython3.7m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC. /usr/local/lib/libpython3.7m.a: error adding symbols: Bad value. collect2: error: ld returned 1 exit status.
最后就是recompile with -fPIC. 这个编译的问题
如果解决了 按照教程安装就行,需要注意如下两个步骤
5 安装scikit-neuralnetwork
这一步前需要 :sudo pip install scikit-neuralnetwork
cd scikit-neuralnetwork; python setup.py develop
如果安装不了,需要添加权限
Sudo python setup.py develop
8
python examples/bench_mnist.py (sknn|lasagne)
后面跟一个 sknn 就行
ubuntu下载文件:
Pwd:看当前目录
下载方法:git clone + 对应链接