-
Notifications
You must be signed in to change notification settings - Fork 282
依赖包安装失败 #2
Comments
@kiang70 |
apt-get install postgresql-server-dev-9.4的时候也报错,提示: The following packages have unmet dependencies: |
@mvike 先 apt-get update ,然后优先安装最高版本试试 |
我已经按照你给出的链接修改了更新源,执行
下列软件包有未满足的依赖关系: |
@0xbug 已解决,用aptitude可以完成安装依赖包的问题 |
要在Django下使用PostgreSQL,你需要在虚拟环境中安装psycopg2数据库适配器,这一步需要原生扩展编译,如果没法找到头文件、使用libpq(用来与Postgres通信的库)链接C程序的静态库和创建Python模块的python开发库(python-dev package),编译将会失败。所以我们必须先安装这些依赖包,然后才能使用PIP安装psycopg2 |
我在执行 |
@I-was-a-fish 暂不支持,请用 Python3.x 哦 |
在执行pip install -r requirements.txt时抛出这个错误
`Using cached djangorestframework_word_filter-0.1.1-py2.py3-none-any.whl
Collecting psycopg2==2.6.2 (from -r requirements.txt (line 8))
Using cached psycopg2-2.6.2.tar.gz
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
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-bftx538c/psycopg2/
`
我的操作系统是kali2.0,我感觉是virtualenv的问题吧,kali2.0里自带python3.4,如果不用virtualenv,该怎么解决?求解答,感谢!
The text was updated successfully, but these errors were encountered: