2017-10-03 4 views
0

이 없습니다, 다음과 같은 오류가 발생합니다는 Heroku가 & 핍 : AttributeError : 나는이에게 Heroku에 배포 할 때 '_NamespacePath'개체가 어떤 속성 '종류'

remote:   File "/tmp/build_283a27430a6f3f4cbf76d08e0f6a61d6/.heroku/python/lib/python3.6/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path 
remote:   orig_path.sort(key=position_in_sys_path) 
remote:  AttributeError: '_NamespacePath' object has no attribute 'sort' 

This issue seems to be related to Pip. 내가 이해하는 것으로부터 다음을 실행하여 해결할 수 있습니다.

pip install --upgrade setuptools 

그러나 Heroku에서는 setuptools의 버전을 지정할 수 없습니다. From the official documentation :

The following libraries are used by the platform for managing and running Python applications and cannot be specified. Setuptools 23.1.0: Python packaging tools. Pip 9.0.1: Application dependency resolution. If your application declares these dependencies in a requirements.txt or Pipfile, unexpected behavior may occur.

이 문제를 어떻게 해결할 수 있습니까?

답변