install taichi package on python

半世苍凉 提交于 2020-08-11 18:40:07

问题


I tried to run a script with python, it has taichi package downloaded from GitHub.

I have little knowledge of how python packages are installed, now I got error in command prompt like "ModuleNotFoundError: No module named 'taichi'"

I just installed package downloaded from GitHub: https://pypi.org/project/taichi/#files

Hope someone can teach what should I do to run my script contains taichi package~


回答1:


To install packages in python you just run the command pip install (name of package) in the command prompt so in your case that would be pip install taichi




回答2:


How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 

Now create a virtual environment

virtualenv venv 

Active your virtual environment:

source venv/bin/activate

Now install your package for python

 pip3 install taichi



回答3:


I have figured it our that this Taichi package needs 64 bits python, it also needs LLMV file downloaded. Besides, there should be virtual studio installed in the local computer. Then this Taichi package can be installed just by using "pip install taichi" in command.

Thanks for everyone's help!



来源:https://stackoverflow.com/questions/62559167/install-taichi-package-on-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!