pip安装要求.txt工作不正常

2024-06-28 22:12:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在我的Digital Ocean Django服务器上安装我所有的Python/Django包。我的requirements.txt在根目录中,所以我执行pip install -r requirements.txt-但是它不起作用。这是我的requirements.txt

amqp==2.2.2
billiard==3.5.0.3
celery==4.1.0
coverage==4.4.2
decorator==4.0.11
defusedxml==0.4.1
Django==1.11.8
django-allauth==0.29.0
django-apptemplates==1.2
django-celery-beat==1.0.1
django-common-helpers==0.9.1
django-cron==0.5.0
django-el-pagination==3.1.0
django-fs-trumbowyg==0.1.4
django-markdown-deux==1.0.5
django-trumbowyg==1.0.1
django-widget-tweaks==1.4.1
get==0.0.0
imageio==2.1.2
kombu==4.1.0
markdown2==2.3.1
moviepy==0.2.3.2
numpy==1.13.3
oauthlib==2.0.1
olefile==0.44
Pillow==4.0.0
post==0.0.0
public==0.0.0
python-magic==0.4.12
python3-openid==3.0.10
pytz==2017.3
query-string==0.0.0
request==0.0.0
requests==2.11.1
requests-oauthlib==0.7.0
schedule==0.4.3
setupfiles==0.0.0
tqdm==4.11.2
vine==1.1.4

以下是日志:

^{pr2}$

我以为它正常工作,只有get==0.0.0包有错误-但是当我执行pip freeze时,它显示:

Django==1.11.8
django-trumbowyg==1.0.3
gunicorn==19.7.1
psycopg2==2.7.3.2
pytz==2017.3

这说明他们都没用。我用pip install django-trumbowyg手动安装了django-trumbowyg,这就是为什么会有这种情况,但是其他的安装只在那里,尽管设置了Django服务器。那么为什么pip install -r requirements.txt不起作用,我该如何修复它呢?在


Tags: installpipdjangotxtgetrequestsrequirementscelery
3条回答

您正在尝试安装版本0.0.0get

您应该在中指定正确的版本号要求.txt。在

  1. 您应该修复requirements.txt中的包版本。在
  2. 从日志中,它显示pip正在使用缓存版本的模块,您可能应该尝试 no-cache-dir选项。在

有时库可能有问题。在

只需编辑requirements.txt.删除您面临问题的任何一个包中的版本号。在

django-widget-tweaks==1.4.1
get
imageio==2.1.2

相关问题 更多 >