Skip to main content

Installation Troubleshooting

Linux issues#

  • If Taichi crashes and reports not found:

    • On Ubuntu, execute sudo apt install libtinfo-dev.

    • On Arch Linux, first edit /etc/pacman.conf, and append these lines:

      [archlinuxcn]Server =$arch

      Then execute sudo pacman -Syy ncurses5-compat-libs.

  • If Taichi crashes and reports /usr/lib/ version `CXXABI_1.3.11' not found:

    You might be using Ubuntu 16.04. Please try the solution in this thread:

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -ysudo apt-get updatesudo apt-get install libstdc++6

Windows issues#

Python issues#

  • If pip could not find a satisfying package, i.e.,

    ERROR: Could not find a version that satisfies the requirement taichi (from versions: none)ERROR: No matching distribution found for taichi
    • Make sure you're using Python version 3.6/3.7/3.8:

      python3 -c "print(__import__('sys').version[:3])"# 3.6, 3.7 or 3.8
    • Make sure your Python executable is 64-bit:

      python3 -c "print(__import__('platform').architecture()[0])"# 64bit

CUDA issues#

  • If Taichi crashes with the following errors:

    [Taichi] mode=release[Taichi] version 0.6.0, supported archs: [cpu, cuda, opengl], commit 14094f25, python 3.8.2[W 05/14/20 10:46:49.549] [cuda_driver.h:call_with_warning@60] CUDA Error CUDA_ERROR_INVALID_DEVICE: invalid device ordinal while calling mem_advise (cuMemAdvise)[E 05/14/20 10:46:49.911] Received signal 7 (Bus error)

    This might be because that your NVIDIA GPU is pre-Pascal and it has limited support for Unified Memory.

    • Possible solution: add export TI_USE_UNIFIED_MEMORY=0 to your ~/.bashrc. This disables unified memory usage in the CUDA backend.
  • If you find other CUDA problems:

    • Possible solution: add export TI_ENABLE_CUDA=0 to your ~/.bashrc. This disables the CUDA backend completely and Taichi will fall back on other GPU backends such as OpenGL.

OpenGL issues#

  • If Taichi crashes with a stack backtrace containing a line of glfwCreateWindow (see #958):

    [Taichi] mode=release[E 05/12/20 18.25:00.129] Received signal 11 (Segmentation Fault)************************************ Taichi Compiler Stack Traceback ************************************
    ... (many lines, omitted)
    /lib/python3.8/site-packages/taichi/core/../lib/ _glfwPlatformCreateWindow/lib/python3.8/site-packages/taichi/core/../lib/ glfwCreateWindow/lib/python3.8/site-packages/taichi/core/../lib/ taichi::lang::opengl::initialize_opengl(bool)
    ... (many lines, omitted)

    it is likely because you are running Taichi on a (virtual) machine with an old OpenGL API. Taichi requires OpenGL 4.3+ to work.

    • Possible solution: add export TI_ENABLE_OPENGL=0 to your ~/.bashrc even if you initialize Taichi with other backends than OpenGL. This disables the OpenGL backend detection to avoid incompatibilities.

Other issues#

  • If none of those above address your problem, please report this by opening an issue on GitHub. This would help us improve user experiences and compatibility, many thanks!