无法在Herkoku上安装pythonnet

时间:2019-12-12 16:15:09

标签: python heroku python.net

在我的一个项目中,我正在使用pythonnet(在requirements.txt中声明),当我尝试在Heroku上部署应用程序时显示错误。我无法从我的项目中删除pythonnet。

remote: -----> Installing requirements with pip
remote:        Collecting pythonnet (from -r /tmp/build_1fd9085f7cb07bc7b0f4643c3665e7e3/requirements.txt (line 9))
remote:          Downloading https://files.pythonhosted.org/packages/4a/0a/5964a5a1fdf207fab8e718edd1f8d3578e0681577fe9abe0d9006f9718c2/pythonnet-2.4.0.tar.gz (1.8MB)
remote:        Installing collected packages: pythonnet
remote:          Running setup.py install for pythonnet: started
remote:            Running setup.py install for pythonnet: finished with status 'error'
remote:            Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mxe7acrb/pythonnet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-jmg3h10r-record/install-record.txt --single-version-externally-managed --compile:
remote:            usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
remote:               or: -c --help [cmd1 cmd2 ...]
remote:               or: -c --help-commands
remote:               or: -c cmd --help

My Requirements.txt

simplejson==3.16.0 bottle==0.12.16 psycopg2-binary==2.7.6.1 Shapely==1.6.4.post2 SQLAlchemy==1.2.14 bjoern==2.2.3 zeep==3.2.0 requests==2.20.1 pythonnet # Package Version # ----------------- ----------- # bleach 3.0.2 # certifi 2018.11.29 # chardet 3.0.4 # docutils 0.14 # idna 2.7 # pkginfo 1.4.2 # Pygments 2.3.0 # readme-renderer 24.0 # requests 2.20.1 # requests-toolbelt 0.8.0 # six 1.11.0 # tqdm 4.28.1 # twine 1.12.1 # urllib3 1.24.1 # webencodings 0.5.1 # zeep brought: # appdirs-1.4.3 # attrs-18.2.0 # cached-property-1.5.1 # defusedxml-0.5.0 # isodate-0.6.0 # lxml-4.3.0 # pytz-2018.9 # zeep-3.2.0 -----------------------------------

谢谢!

0 个答案:

没有答案