ITの隊長のブログ

ITの隊長のブログです。Rubyを使って仕事しています。最近も色々やっているお(^ω^ = ^ω^)

モジュール`google-cloud`をインストールしたらエラー

スポンサードリンク

googlecloudplatform.github.io

$ pip install google-cloud
# ...
      File "/Users/user/.pyenv/versions/3.6.1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2120, in _rebuild_mod_path
        orig_path.sort(key=position_in_sys_path)
    AttributeError: '_NamespacePath' object has no attribute 'sort'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/rg/wlw0421d37l58kw3740k_t080000gn/T/pip-build-4u4zcodk/googleapis-common-protos/

(´・ω・`)

ぐぐったら答えが

github.com

$ pip install --upgrade pip setuptools

これでおkでした。ε- (´ー`*)