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.

どうすればこの問題を解決できますか?

答えて

関連する問題