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和靓汤_Heroku_Import_Dependencies_Beautifulsoup - Fatal编程技术网

Heroku和靓汤

Heroku和靓汤,heroku,import,dependencies,beautifulsoup,Heroku,Import,Dependencies,Beautifulsoup,我在heroku的beautifulsoup模块依赖项方面遇到问题 我在这里遵循了指定依赖性的步骤 但我一直收到错误“ImportError:没有名为bs4的模块” 当它到达此行“从bs4导入”时 但是requirements.txt文件有以下内容 beautifulsoup4==4.3.2 我也从新鲜开始尝试制作一个新的应用程序,但没有成功。 heroku服务器上的这些错误,在本地运行应用程序不会给我带来任何问题 我在使用PhantomJS构建包 然而,这意味着heroku不再检测pyth

我在heroku的beautifulsoup模块依赖项方面遇到问题

我在这里遵循了指定依赖性的步骤

但我一直收到错误“ImportError:没有名为bs4的模块” 当它到达此行“从bs4导入”时

但是requirements.txt文件有以下内容

beautifulsoup4==4.3.2
我也从新鲜开始尝试制作一个新的应用程序,但没有成功。
heroku服务器上的这些错误,在本地运行应用程序不会给我带来任何问题

我在使用PhantomJS构建包

然而,这意味着heroku不再检测python构建包,因此没有导入beautifulsoup

为了解决这个问题,我在终端中执行了这个命令

heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
然后我创建了一个名为“.buildpack”的文本文件,包括开头的点。 然后我将这两个URL粘贴到文本文件中

https://github.com/heroku/heroku-buildpack-python
https://github.com/stomita/heroku-buildpack-phantomjs

这告诉它使用python构建包和phantomJS构建包

requirements.txt
是否位于存储库的根目录中?这意味着它是应用程序文件夹中的第一个文件之一?是的,这取决于你所说的“应用程序文件夹”是什么意思。
ls-d.git requirements.txt
显示了什么?.git requirements.txt==这就是显示的内容您的
profile
包含哪些内容?