1. When CentOS is updated to python2.7, the arrow keys cannot be used normally:
The original address of this problem (thank the author for sharing): here
The arrow keys in the diagram are all escaped and are very inconvenient to use in interactive mode. This problem is mainly caused by the lack of readline module problems. and CentOS default only ReadLine module and no readline-devel development module. So as long as the installation can be.
#安装readline-devel $yum-y install READLINE-DEVL #重新安装python $./configure $make Install
The problem should have been resolved. If you still can't, try using the ReadLine module with Python.Note: Reinstalling Python has no effect on previously installed Plug-ins。 2. Win7 64-bit installation Theano, Importerror:not import name Gof This article installs Theano on 32-bit machines (before you need to install Cygwin or mingw), and then enter ' from Theano import * ' , you can start, no problem, but in the notebook Win7 64-bit installation Theano, using the ' from Theano import * ', display a series of seemingly compiled work, and then when you use this command to import Theano, finally prompted: "Importerror: Not import name Gof ". On the internet did not find a good solution on GOF (English, but the answer is not clear), said that the first installation of libpython1.2, and so on, a few times, the last hint of "Pythonw.exe has stopped working", really did not recruit, because urgent to use, There is no time to solve this problem, so according to Theano official online said the use of Anaconda installation, the steps are as follows: ① first download and install Anaconda, download address: http://www.continuum.io/downloads, This article now Windows 64② Download installs Windows Installer for Theano on Anacondace for Windows.: Address: http://deeplearning.net/software/theano/ Install.html#windows-anaconda Download Theano zip file: Https://github.com/Theano/Theano, extract to e:/anaconda/lib/site-packages/ Theano (There's a Theano folder in the file, put it in the E:/anaconda/lib/site-packages .) directory. Add environment variable: path:e:/anaconda/mingw/bin; E:/anaconda/mingw/x86_64-w64-mingw32/lib;
(32bit e:/anaconda/mingw/i686-w64-mingw32/lib;)
New environment variable: Pythonpath:e:/anaconda/lib/site-packages/theano;
Theano Win7 64-bit installation, can refer to: Deep Learning Development Tools Theano Installation Configuration I pc (32-bit) installation Anaconda and Theano steps:
1. First install the MinGW, the default installation in C:/mingw, configure the environment variable: path= ...; C:/mingw/bin 2. Install Anaconda-32.exe download from official web, configure environment variable; see: Deep Learning Theano installation configuration 3. Manually configure Theano, download theano.zip files, unzip the ' Anaconda installation directory/lib/site-packages/theano ', under the ' c:/users/username ' directory, new '. Theanorc.txt ' file, Enter the following: [Global] openmp=false [Blas] ldflags= [gcc] cxxflags =-ic:/mingw/include, in cmd, test installation succeeded:
Enter Python, import Theano, print theano.config.blas.ldflags If there is no error, install success Note: Win7 has been installed Cygwin instead of MinGW, import When Theano, you may compile multiple times and prompt the ' importerror:not Import name Gof ' error, as indicated on the Theano official web site: "Note this it should be possible to run Theano Withcyg Win instead of MinGW, but this has not been tested ", which means that the yet can not be installed successfully, I installed before the Cygwin, forced to replace Cygwin3. Centos6.4 Installation Theano Error: After installing good numpy, scipy, Theano.
In the Python code, typing: Import Theano, the error is as follows:
Error code problem occurred during compilation with the command line below: g++ -shared -g -m64 -fpic -i/usr/local/lib/ python2.7/site-packages/numpy/cor e/include -i/usr/local/include/python2.7 -o /root/ .theano/compiledir_linux-2 . 6.18-308.el5-x86_64-with-redhat-5.8-tikanga-x86_64-2.7.3-64/lazylinker_ ext/ lazylinker_ext.so /root/.theano/compiledir_linux-2.6.18-308.el5-x86_64-with- redhat-5.8-tikanga-x86_64-2.7.3-64/lazylinker_ext/mod.cpp -l/usr/local/lib - lpython2.7 /usr/bin/ld: /usr/local/lib/libpython2.7.a (ABSTRACT.O): relocation r_ x86_64_ 32 against ' A local symbol ' can not be used when making a shared object; rec ompile with -fpic &nbsP /usr/local/lib/libpython2.7.a: could not read symbols: bad value collect2: ld returned 1 exit status Traceback (most recent call last): File "<stdin>", line 1, in <module> File "theano/__init__. Py ", line 55, in <module> from theano.compile import \ File "theano/compile/__init__.py", line 5, in <module> from theano.compile.function_module import * File "Theano/compile /function_module.py ", line 18, in <module> import theano.compile.mode File "theano/compile/mode.py", line 11, in <module> &NBSP;&NBSP;&NBSP;&NBSP;IMPORT&NBSP;THEANO.GOF.VM File "theano/gof/vm.py", line 486, in <module > import lazylinker_c File "theano/gof/lazylinker_c.py", line 89, in <module> preargs=args) File "theano/gof/ cmodule.py ", line 1829, in compile_str ( Status, compile_stderr.replace (b (' \ n '), b (' . '))) exception: compilation failed (Return status=1): /usr/bin/ld: /usr/local/lib / LIBPYTHON2.7.A (Abstract. O): relocation r_