LoginSignup
2
0

More than 5 years have passed since last update.

TouchDesigner内pythonでpandas

Last updated at Posted at 2019-02-18

TouchDesigner内pythonでpandasを使おうとおもったら

TouchDesigner内でPandas使おうと思って、外部パス通した後に、import pandasすると下記のエラーがでる。numpyとのパージョン整合性が合わないとのこと。

環境:64Bit Build 2018.27550
Mac/Win

外部Pythonパスは、Preferenceでsite-packagesの場所を設定した。しかし、Numpyおそらく、TD内部にあるnumpyを読みに行っている。

ImportError: this version of pandas is incompatible with numpy < 1.12.0
your numpy version is 1.10.4.
Please upgrade numpy to >= 1.12.0 to use this pandas version

なので、textDat上で、Python探索パスの最前列に、所望の環境のsite-packagesを指定。


import sys, os
path = os.path.join(os.path.abspath('.'), '.venv/lib/python3.5/site-packages')

if not path in sys.path:
    sys.path.insert(0,path)
    print(sys.path)

import pandas as pd
print(pd)

めでたく、pandasが動きました。

2
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
2
0