当我将项目部署到Heroku时,youtokentome出现问题

kmb7vmvb  于 7个月前  发布在  其他
关注(0)|答案(1)|浏览(96)

我尝试将我的python项目部署到heroku,遇到了这个问题:

Collecting youtokentome==1.0.6
remote:          Downloading youtokentome-1.0.6.tar.gz (86 kB)
remote:            ERROR: Command errored out with exit status 1:
remote:             command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k3by6gof/youtokentome/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k3by6gof/youtokentome/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-hayjf3lo
remote:                 cwd: /tmp/pip-install-k3by6gof/youtokentome/
remote:            Complete output (5 lines):
remote:            Traceback (most recent call last):
remote:              File "<string>", line 1, in <module>
remote:              File "/tmp/pip-install-k3by6gof/youtokentome/setup.py", line 5, in <module>
remote:                from Cython.Build import cythonize
remote:            ModuleNotFoundError: No module named 'Cython'
remote: 

       ----------------------------------------

字符串
上一篇:Cython==0.29.24 in my requirements.txt

ocebsuys

ocebsuys1#

安装conda并使用conda安装cython。

conda install -y cython

字符串
然后,在步骤S102,

pip install youtokentome


这对我很有效。

相关问题