2017-05-29 218 views
0

我正在嘗試安裝pylearn2。我正在使用全新的虛擬環境,我只安裝了theanopygpu的開發版本。我已經測試過它們,兩者工作正常。然而,當我嘗試安裝pylearn2我得到這個錯誤:安裝pylearn2 - ImportError:No module named six.moves

$ python setup.py develop 
Traceback (most recent call last): 
    File "setup.py", line 8, in <module> 
    from theano.compat.six.moves import input 
ImportError: No module named six.moves 

我試圖安裝六個在一些地方建議,但它告訴我,它已經被安裝:

$ pip install six 
Requirement already satisfied: six in /home/virt_env/virt1/lib/python2.7/site-packages 

有其他人遇到這個問題?

回答

0

如果您已經安裝了六個使用pip,那麼您可以通過編輯setup.py來直接使用six.moves代替theano版本來修復此問題