Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在heroku上下载dj数据库url---django应用程序_Django_Heroku - Fatal编程技术网

无法在heroku上下载dj数据库url---django应用程序

无法在heroku上下载dj数据库url---django应用程序,django,heroku,Django,Heroku,试着开始学习Django。我的教程告诉我运行pip安装dj数据库url。当我这样做时,我得到: postgres@precise64:/vagrant/projects2/microblog$ pip install dj-database-url Downloading/unpacking dj-database-url Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads

试着开始学习Django。我的教程告诉我运行pip安装dj数据库url。当我这样做时,我得到:

postgres@precise64:/vagrant/projects2/microblog$ pip install dj-database-url
Downloading/unpacking dj-database-url
Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement dj-database-url
No distributions at all found for dj-database-url
Storing complete log in /var/lib/postgresql/.pip/pip.log

如有任何建议,将不胜感激

刚刚试过,看起来效果不错。打开/var/lib/postgresql/.pip/pip.log,看看它说了些什么不可以获取URL:当查找dj数据库URL文件/usr/lib/python2.7/dist-packages/pip/req.py的下载链接时,会跳过URL,第948行,在prepare_files URL=finder.find_requirementreq_安装,升级=self.upgradeFile/usr/lib/python2.7/dist-packages/pip/index.py中,第152行,在find_requirement raise DistributionNotFound'中,找不到%s的任何分发版'%req DistributionNotFound:找不到dj数据库URL的任何分发版您是否尝试过下载tarball并自行解包?好的,我已经下载并解包了。我不确定我把它放在了正确的目录里。如何确保我的应用程序知道它在那里?