Solve the problem of installing Theano on Ubuntu19

Solution:

Modify the setup.py file directly in the directory where you downloaded the pythearn2 package:
Change from theano.compat.six.moves import input to from six.moves import input

Then you can:

python setup.py build
python setup.py install

ps: Install theano in Ubuntu environment

Recently, due to the special need to install theano, there are actually several alternative ways to install theano on ubuntu. The easiest way is to directly pip install theano, and then pip install which package is missing, but after I install it, run the code There was a problem:

ImportError: cannot import name ‘downsample'

I checked the information and found that the latest version does not have this. This is mainly an error caused by Theano version update. The solution is

pip install theano==0.8.2

Use this to change back to an older version.

to sum up

The above is what the editor introduced to you to solve the problem of "No module named'theano.compat.six'" when installing Theano on Ubuntu19. I hope it will help you!

Recommended Posts

Solve the problem of installing Theano on Ubuntu19
[Share] Solve the problem of failed installation of Vitis 2019.2 on Ubuntu 16.04
The problem of installing GD plug-in OFF on ubuntu dream weaving DEDE
Solve the problem of python compiling and installing ssl
Solve the problem of convex hull based on python
The process of solving the problem of installing ImageMagick under Ubuntu system
How to fix the problem of missing system settings on Ubuntu 14.04
Install the CPU version of Caffe on Ubuntu
Use the command to solve the Ubuntu projector problem:
Solve the problem of python running startup error
How to solve the problem of not being able to access the Internet after installing centos7 on VmWare
The pits encountered when installing yii2 advanced on Ubuntu
Detailed explanation of the remaining problem based on python (%)
Completely solve the problem of slow downloading of Python packages
Solve the problem that the Ubuntu 17.10 settings panel cannot be opened
Overview of the Ubuntu file system
Install the latest Python 3.6 version on Ubuntu
Detailed tutorial on installing python3.7 for ubuntu18
Error when installing Python module on Ubuntu
Solve the conflict of multiple versions of python
The apt-get command of Ubuntu basic tutorial
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Install the flat theme latabulous on Ubuntu 16.04
Install NeoVim on Ubuntu: the easiest way
Detailed tutorial for installing CUDA9.0 on Ubuntu 16.04
Detailed tutorial for installing phpMyAdmin on Ubuntu 18.04
Small tutorial: List the disks on Ubuntu
[Centos8] The bumpy process of installing docker
How to modify the hostname on Ubuntu 20.04
Solve the conflict of multiple versions of python
Expand the disk size of Ubuntu under VMware
ubuntu adjusts the priority of swap swap space usage
Solve the problem that Centos8 cannot install docker
The basic configuration and interface beautification of Ubuntu
Install the old version of seurat under Ubuntu
Talking about the first experience of using Ubuntu
First look at the new features of Ubuntu 17.10
The use of crontab for ubuntu scheduled tasks
The consequences of uninstalling python in ubuntu, very
The ultimate guide to install gooderp on ubuntu
Introduction to the use of Hanlp in ubuntu
Turn off and turn on the firewall in ubuntu
How to run the parsing server on Ubuntu 14.04
Cancel the background color of the Ubuntu (wsl) folder
Detailed tutorial of installing nginx on centos8 (graphic)
How to check the installed JDK on Ubuntu
Ubuntu wireless network card problem on Lenovo laptop
How to install the latest MySQL on Ubuntu 18.04
lamp on ubuntu
The default installation path of apt-get install of ubuntu (transfer)
How to add the gzip module to Nginx on Ubuntu 14.04
How to turn the language of Ubuntu into Chinese? ?
Modify the default root password of the Ubuntu operating system
Install the Ethereum client Mist on windows and ubuntu
Solutions to the black screen when installing ubuntu (3 types)
Canonical announced the temporary closure of Ubuntu 17.10 download channel
How to install theano and keras on ubuntu system
Solution to the slow speed of ubuntu18.04 wireless network