Не могу обновить matplotlib в Ubuntu 12.04 с установленным Canopy
я пытаюсь обновитьmatplotlib
вUbuntu 12.04
, Когда я запускаю команду:
sudo pip install --upgrade matplotlib
Я получаю эту ошибку:
Downloading/unpacking matplotlib
Running setup.py egg_info for package matplotlib
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.24dev-r0 (/usr/lib/python2.7/dist-packages))
Complete output from command python setup.py egg_info:
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.24dev-r0 (/usr/lib/python2.7/dist-packages))
----------------------------------------
Command python setup.py egg_info failed with error code 2
Storing complete log in /home/gabriel/.pip/pip.log
Итак, я бегу:
easy_install -U distribute
и я получаю:
Traceback (most recent call last):
File "/home/gabriel/Enthought/Canopy_32bit/User/bin/easy_install", line 9, in
load_entry_point('distribute', 'console_scripts', 'easy_install')()
File "/home/gabriel/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/gabriel/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg/pkg_resources.py", line 2565, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'easy_install') not found
Так что'Что-то не работает с моимCanopy
установить. Я'м используюSpyder
прямо сейчас, чтобы я мог удалитьCanopy
чтобы увидеть, помогает ли это, но командыsudo apt-get remove enthought*
а такжеsudo apt-get remove canopy*
найти нечего убрать.
Что я могу сделать, чтобы обновить matplotlib?
добавлятьЯ следовал инструкциям, чтобы удалитьCanopy
отВот и теперь, когда я бегуeasy_install -U distribute
Я получил:
Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]
Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]
ImportError: No module named site
что я думаю, связано со мной, удалив строкуsource ~/Enthought/Canopy_64bit/User/bin/activate
от~/.profile
, Я попытался запустить следующие команды как sudo:
apt-get autoclean
apt-get clean
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get -f install
dpkg --configure -a
apt-get install --reinstall python
но это не сработало. Любые идеи о том, как это исправить?
Добавить 2Я пробовал настройкуPYTHONHOME
с помощью команды:
export PYTHONHOME=/usr/lib/python2.7
и сейчасeasy_install -U distribute
возвращает:
ImportError: No module named site
То же самое с:
export PYTHONHOME=/usr/local/lib/python2.7
Так что теперь, чтобы преследовать эту ошибку.
Добавить 3Окружение:
export PYTHONHOME=/usr/lib/python2.7/
и затем выполните команду как:sudo
sudo easy_install -U distribute
сделал свое дело. Я мог тогда бежатьsudo pip install --upgrade matplotlib
, Я'Я добавлю это как ответ через минуту.