Libagg: yes [pkg-config information for 'libagg' could not
#Ubuntu python 2.7 install matplotlib error 13 install
Is this specific to v1.4.3 of matplotlib? Should I perhaps install an earlier version? I've even manually installed mock (v1.3.0), since the install seems to fail on trying to import it, but that didn't help either.Ĭomplete output from command python setup.py egg_info:Įdit setup.cfg to change the build options BUILDING MATPLOTLIB As the output indicates, This is python 2.7.3 and all of the dependencies are already present. I already have a bunch of packages installed successfully - this is the one that's failing. I would recommend you refer to the virtualenv install’s pip binary explicitly when running the sudo command.I am attempting to install matplotlib with pip inside a virtualenv on Ubuntu Linux. Your permissions error, which is from the Django environment, seems likely to be due to not using sudo (among other things, some C compilation needs to take place, during the psycopg2 install, and so sudo is often required whereas it isn’t with many other packages). Storing debug log for failure in /home/user/.pip/pip.logīased on the combination of your question and one of your comments, it appears that when you ran sudo pip install psycopg2, it was using the system install, as it referred to psycopg2 in /usr/lib/python2.7/dist-packages which is different from the environment from which you’re trying to run Django. OSError: Permission denied: '/uwsgi-tutorial/build' Location = req_to_install.build_location(self.build_dir, not self.is_download)įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/pip/req.py", line 218, in build_locationįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/pip/req.py", line 1527, in _make_build_dirįile "/uwsgi-tutorial/lib/python2.7/os.py", line 157, in makedirs Requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/pip/req.py", line 1153, in prepare_files When I do pip install psycopg2 in my virtual env, I get the following error:įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in mainįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run Raise Improperl圜onfigured("Error loading psycopg2 module: %s" % e)ĭ圜onfigured: Error loading psycopg2 module: No module named psycopg2 Return import_module('%s.base' % backend_name)įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 27, in Return getattr(connections, item)įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/utils.py", line 242, in _getitem_įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/utils.py", line 108, in load_backend Self.db_table = truncate_name(self.db_table, _name_length())įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/_init_.py", line 40, in _getattr_ New_class.add_to_class('_meta', Options(meta, **kwargs))įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/models/base.py", line 300, in add_to_classįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/models/options.py", line 166, in contribute_to_class Self.models_module = import_module(models_module_name)įile "/usr/lib/python2.7/importlib/_init_.py", line 37, in import_moduleįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 40, in įile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/db/models/base.py", line 125, in _new_ File "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/core/management/_init_.py", line 385, in execute_from_command_lineįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/core/management/_init_.py", line 354, in executeįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/_init_.py", line 21, in setupįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populateįile "/uwsgi-tutorial/local/lib/python2.7/site-packages/django/apps/config.py", line 197, in import_models