LoginSignup
1
0

More than 5 years have passed since last update.

AttributeError: '_NamespacePath' object has no attribute 'sort'とでて泣いてたら解決した

Posted at

pandasのread_gbqが使いたくて(dialectのオプションがきくやつ)いろいろやっていて、

pip install pandas-gbq
を実行したら、

AttributeError: '_NamespacePath' object has no attribute 'sort'

とでてきたのです。

調べていると、

setuptoolsが古いんだよ、
pip install --upgrade pip setuptools
をやればいいよ。

という情報がでてくるのですが、実行してもなにも変わらない。

あ、環境としては、pyenvでanacondaいれてその中でやっていました。

conda install pandas-gbq -c conda-forge
をたたけというのもでてきたのでやってみたけどやっぱりだめ。

長いことハマってて泣きそうだったのですが、

conda update conda

というコマンドを叩いたら、なんかsetuptoolsのバージョンが上がった模様。

おや、と思い、

pip install pandas-gbq

を叩いたら見事通りました。

めでたしめでたし。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0