在python 虚拟环境下使用命令pip install -r request 安装软件失败?
各位好:
我使用下列命令建立和进入虚拟环境:
(1)virtualenv homepage
(2). homepage/bin/activate && cd homepage
然后,我一个内容如下的request文件拷贝如homepage,request内容如下:
Flask==0.10.1 Flask-Admin==1.0.7
Flask-Auth==0.85
Flask-OAuth==0.12
Flask-SQLAlchemy==1.0
Markdown==2.4
WTForms==1.0.5
alembic==0.6.3
ipython==1.2.1
nose==1.3.0
psycopg2==2.5.2
当我使用pip install -r request安装上述软件时,报出如下错误,请帮我看看是怎么回事呢?
(homepage)duqi@Lenovo-G480:~/python/homepage$ pip install -r requests
Downloading/unpacking Flask==0.10.1 (from -r requests (line 1))
Downloading Flask-0.10.1.tar.gz (544Kb): 544Kb downloaded
Running setup.py egg_info for package Flask
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
warning: no previously-included files matching '*.pyo' found under directory 'examples'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
Downloading/unpacking Flask-Admin==1.0.7 (from -r requests (line 2))
Downloading Flask-Admin-1.0.7.tar.gz (330Kb): 330Kb downloaded
Running setup.py egg_info for package Flask-Admin
warning: no previously-included files matching '*.pyc' found under directory 'flask_admin'
Downloading/unpacking Flask-Auth==0.85 (from -r requests (line 3))
Downloading Flask-Auth-0.85.tar.gz (46Kb): 46Kb downloaded
Running setup.py egg_info for package Flask-Auth
warning: no previously-included files matching '*.pyc' found under directory 'flaskext'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
no previously-included directories found matching 'docs/_build'
Downloading/unpacking Flask-OAuth==0.12 (from -r requests (line 4))
Downloading Flask-OAuth-0.12.tar.gz
Running setup.py egg_info for package Flask-OAuth
Downloading/unpacking Flask-SQLAlchemy==1.0 (from -r requests (line 5))
Downloading Flask-SQLAlchemy-1.0.tar.gz (92Kb): 92Kb downloaded
Running setup.py egg_info for package Flask-SQLAlchemy
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
Downloading/unpacking Markdown==2.4 (from -r requests (line 6))
Downloading Markdown-2.4.tar.gz (260Kb): 260Kb downloaded
Running setup.py egg_info for package Markdown
Downloading/unpacking WTForms==1.0.5 (from -r requests (line 7))
Downloading WTForms-1.0.5.zip (355Kb): 355Kb downloaded
Running setup.py egg_info for package WTForms
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking alembic==0.6.3 (from -r requests (line 8))
Downloading alembic-0.6.3.tar.gz (437Kb): 437Kb downloaded
Running setup.py egg_info for package alembic
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.sty' under directory 'docs'
warning: no files found matching '*.dat' under directory 'tests'
warning: no files found matching 'distribute_setup.py'
no previously-included directories found matching 'docs/build/output'
Downloading/unpacking ipython==1.2.1 (from -r requests (line 9))
Downloading ipython-1.2.1.tar.gz (8.7Mb): 8.7Mb downloaded
Running setup.py egg_info for package ipython
Downloading/unpacking nose==1.3.0 (from -r requests (line 10))
Downloading nose-1.3.0.tar.gz (404Kb): 404Kb downloaded
Running setup.py egg_info for package nose
no previously-included directories found matching 'doc/.build'
Downloading/unpacking psycopg2==2.5.2 (from -r requests (line 11))
Downloading psycopg2-2.5.2.tar.gz (685Kb): 685Kb downloaded
Running setup.py egg_info for package psycopg2
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Command python setup.py egg_info failed with error code 1 in /home/duqi/python/homepage/build/psycopg2
Storing complete log in /home/duqi/.pip/pip.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
系统环境也不错
ubuntu:
CentOS: