WebFaction
Community site: login faq

Hello,

I am using a package with python "Pygraphviz" that uses a series of packages that i usually install with linux without problems:

sudo apt-get install graphviz libgraphviz-dev pkg-config

Since i don't have privileges how can i install this package ? (here's the error code)

$ pip install pygraphviz==1.4rc1 Installing collected packages: pygraphviz Running setup.py install for pygraphviz ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/home/ntwrkr/tmp/pip-build-_te2bR/pygraphviz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /home/ntwrkr/tmp/pip-CvhARR-record/install-record.txt --single-version-externally-managed --compile: running install Trying dpkg Failed to find dpkg Trying pkg-config Package libcgraph was not found in the pkg-config search path. Perhaps you should add the directory containinglibcgraph.pc' to the PKG_CONFIG_PATH environment variable No package 'libcgraph' found Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/ntwrkr/tmp/pip-build-_te2bR/pygraphviz/setup.py", line 93, in <module> tests_require=['nose>=0.10.1', 'doctest-ignore-unicode>=0.1.0', 'mock>=1.3'], File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup_commands.py", line 44, in modified_run self.include_path, self.library_path = get_graphviz_dirs() File "setup_extra.py", line 160, in get_graphviz_dirs include_dirs, library_dirs = _try_configure(include_dirs, library_dirs, _pkg_config) File "setup_extra.py", line 115, in _try_configure i, l = try_function() File "setup_extra.py", line 70, in _pkg_config output = S.check_output(['pkg-config', '--libs-only-L', 'libcgraph']) File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['pkg-config', '--libs-only-L', 'libcgraph']' returned non-zero exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/home/ntwrkr/tmp/pip-build-_te2bR/pygraphviz/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /home/ntwrkr/tmp/pip-CvhARR-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /home/ntwrkr/tmp/pip-build-_te2bR/pygraphviz/ `

asked 09 Dec '16, 19:08

Cavi Andrea ...
12
accept rate: 0%

edited 09 Dec '16, 19:09

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×6
×1

question asked: 09 Dec '16, 19:08

question was seen: 2,325 times

last updated: 09 Dec '16, 19:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM