问题
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