这个烧瓶在我的本地机器上运转良好。然而,当我试图将它部署到heroku时,我陷入了部署步骤:git push heroku master
错误是:ModuleNotFoundError: No module named 'lxml'
谢谢!
看来heroku已经成功下载了lxml模块,我怀疑路径有问题。
Downloading lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl (7.3MB)
remote: Collecting tushare==0.8.2 (from -r /tmp/build_c53be87973e8917c338f0bc2fe032c48/requirements.txt (line 46))
remote:
Downloading tushare-0.8.2.zip (121kB)
remote: Complete output from command python setup.py egg_info:
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-build-a4xb2e0z/tushare/setup.py", line 4, in <module>
remote: import tushare
remote: File "/tmp/pip-build-a4xb2e0z/tushare/tushare/__init__.py", line 6, in <module>
remote: from tushare.stock.trading import (get_hist_data, get_tick_data,
remote: File "/tmp/pip-build-a4xb2e0z/tushare/tushare/stock/trading.py", line 13, in <module>
remote: import lxml.html
remote: ModuleNotFoundError: No module named 'lxml'发布于 2017-08-01 05:18:45
现在已经解决了。
https://stackoverflow.com/questions/45406724
复制相似问题