software installation - Problem install pgAdmin 4 v1.1 in desktop mode on Ubuntu 16.04 - Ask Ubuntu
following previous post how install pgadmin 4 in desktop mode on ubuntu 16.04, had error (can't find python.h). mentioned changing python3, how go doing this?
thanks in advance.
pip install pgadmin4-1.1-py2-none-any.whl processing ./pgadmin4-1.1-py2-none-any.whl requirement satisfied: flask-principal==0.4.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: blinker==1.3 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: unittest2==1.1.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: testscenarios==0.5.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: extras==0.0.3 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: jinja2==2.7.3 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: importlib==1.0.3 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: traceback2==1.4.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: flask-wtf==0.12 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: pytz==2014.10 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: sqlparse==0.1.19 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: python-dateutil==2.5.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: six==1.9.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: passlib==1.6.2 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: pyrsistent==0.11.13 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: flask==0.11.1 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: ordereddict in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: wtforms==2.0.2 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: flask-mail==0.9.1 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: werkzeug==0.9.6 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: linecache2==1.0.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: sqlalchemy==1.0.14 in ./lib/python2.7/site-packages (from pgadmin4==1.1) collecting psycopg2==2.6.2 (from pgadmin4==1.1) using cached psycopg2-2.6.2.tar.gz requirement satisfied: python-mimeparse==1.5.1 in ./lib/python2.7/site-packages (from pgadmin4==1.1) collecting html5lib==1.0b3 (from pgadmin4==1.1) requirement satisfied: markupsafe==0.23 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: click==6.6 in ./lib/python2.7/site-packages (from pgadmin4==1.1) collecting speaklater==1.3 (from pgadmin4==1.1) collecting flask-security==1.7.5 (from pgadmin4==1.1) collecting simplejson==3.6.5 (from pgadmin4==1.1) collecting babel==1.3 (from pgadmin4==1.1) requirement satisfied: testtools==2.0.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) collecting pycrypto==2.6.1 (from pgadmin4==1.1) using cached pycrypto-2.6.1.tar.gz collecting flask-sqlalchemy==2.1 (from pgadmin4==1.1) requirement satisfied: pbr==1.9.1 in ./lib/python2.7/site-packages (from pgadmin4==1.1) collecting flask-gravatar==0.4.2 (from pgadmin4==1.1) using cached flask_gravatar-0.4.2-py2.py3-none-any.whl collecting flask-login==0.3.2 (from pgadmin4==1.1) collecting beautifulsoup4==4.4.1 (from pgadmin4==1.1) using cached beautifulsoup4-4.4.1-py2-none-any.whl collecting django-htmlmin==0.8.0 (from pgadmin4==1.1) requirement satisfied: fixtures==2.0.0 in ./lib/python2.7/site-packages (from pgadmin4==1.1) requirement satisfied: itsdangerous==0.24 in ./lib/python2.7/site-packages (from pgadmin4==1.1) collecting flask-babel==0.11.1 (from pgadmin4==1.1) requirement satisfied: argparse in /usr/lib/python2.7 (from unittest2==1.1.0->pgadmin4==1.1) building wheels collected packages: psycopg2, pycrypto running setup.py bdist_wheel psycopg2 ... error complete output command /home/edy/pgadmin4/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-cfch6n/psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvolzfypip-wheel- --python-tag cp27: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/psycopg2 copying lib/errorcodes.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/extras.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/extensions.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/_json.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/psycopg1.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/_range.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/tz.py -> build/lib.linux-x86_64-2.7/psycopg2 copying lib/pool.py -> build/lib.linux-x86_64-2.7/psycopg2 creating build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_bugx000.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/testutils.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_quote.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_lobject.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_errcodes.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_copy.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_connection.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_module.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_types_extras.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/testconfig.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_cursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_transaction.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_async.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_types_basic.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_dates.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_notify.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_bug_gc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_with.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_cancel.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/test_green.py -> build/lib.linux-x86_64-2.7/psycopg2/tests copying tests/dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests running build_ext building 'psycopg2._psycopg' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/psycopg x86_64-linux-gnu-gcc -pthread -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fno-strict-aliasing -wdate-time -d_fortify_source=2 -g -fstack-protector-strong -wformat -werror=format-security -fpic -dpsycopg_default_pydatetime=1 -dpsycopg_version="2.6.2 (dt dec pq3 ext lo64)" -dpg_version_hex=0x090601 -dhave_lo64=1 -i/usr/include/python2.7 -i. -i/usr/include/postgresql -i/usr/include/postgresql/9.6/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -wdeclaration-after-statement in file included psycopg/psycopgmodule.c:27:0: ./psycopg/psycopg.h:30:20: fatal error: python.h: no such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed exit status 1 ---------------------------------------- failed building wheel psycopg2
python.h
should included in python-dev
-package. can install package these commands:
sudo apt install python-dev
Comments
Post a Comment