Python3.6.9 taichi File "/taichi-dev/taichi/build/libtaichi_core.so" not exist

Hi there,
my python version is Python 3.6.9,
system info:

Linux 6fd7e00187ef 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I installed taichi with

python3 -m pip install taichi

Here is the error I met

Python 3.6.9 (default, Jan 26 2021, 15:33:00) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import taichi 
[Taichi] mode=development
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/taichi/__init__.py", line 1, in <module>
    from taichi.core import *
  File "/usr/local/lib/python3.6/dist-packages/taichi/core/__init__.py", line 1, in <module>
    from taichi.core.logging import *
  File "/usr/local/lib/python3.6/dist-packages/taichi/core/logging.py", line 4, in <module>
    from taichi.core import util
  File "/usr/local/lib/python3.6/dist-packages/taichi/core/util.py", line 203, in <module>
    check_exists(lib_path)
  File "/usr/local/lib/python3.6/dist-packages/taichi/core/util.py", line 136, in check_exists
    f'File "{src}" not exist. Installation corrupted or build incomplete?'
FileNotFoundError: File "/taichi-dev/taichi/build/libtaichi_core.so" not exist. Installation corrupted or build incomplete?

I don’t understand why [Taichi] mode=development here, should this mode be release?

Thx for any reply.

Hey Richard,

Could you check echo $TAICHI_REPO_DIR and unset $TAICHI_REPO_DIR if it’s not empty? Let us know if you still see the issue after that.

Thanks!

3 个赞