Python Forum
install taichi python package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install taichi python package
#1
Hello everyone,

I am recently trying to install a python package called taichi, this is where I found it: https://github.com/taichi-dev/taichi.

However, I have looked through their documentation, and also googled a lot, it seemed like that the installation is really easy, but I just cannot succeed! It seemed like I need something in order to install it, can someone help? Thanks in advance!

[Image: 8a3722Z]

By the way, I asked on another forum before, this is the thread: https://stackoverflow.com/questions/6255...-on-python

And here is their documentation: https://taichi.readthedocs.io/en/stable/
Reply
#2
the package is available on pypi https://pypi.org/project/taichi/
but you supply your own pypi compatible repository https://pypi.doubanio.com

note that you create virtual environment, but you never activate it, so you are trying to install it in the system installation, not in the virtual envirnment
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Jun-29-2020, 09:12 PM)buran Wrote: the package is available on pypi https://pypi.org/project/taichi/
but you supply your own pypi compatible repository https://pypi.doubanio.com

note that you create virtual environment, but you never activate it, so you are trying to install it in the system installation, not in the virtual envirnment

I cannot open the second link, do you mind explain in detail? I had downloaded the package already, but the problem is I do not know how to install, what exactly should I use to install that whl file?
Thanks so much!
Reply
#4
(Jun-30-2020, 12:18 PM)CatherineKan Wrote: I cannot open the second link, do you mind explain in detail? I had downloaded the package already, but the problem is I do not know how to install, what exactly should I use to install that whl file?
Thanks so much!
You shall not download anything,make virtual environment and install with pip.
taichi Wrote:Starting April 13 2020 (v0.5.12), we release the Python package taichi instead of taichi-nightly.
Now this PyPI package includes CPU, CUDA 10, Metal and OpenGL support.
So here is a run,and virtual environment is now build into python(venv),so no need to use external virtualenv package.
I use cmder,but commands are the same in cmd.
# Make environment
G:\div_code
λ python -m venv taichi_env

# Cd in
G:\div_code
λ cd taichi_env\

# Activate environment see (taichi_env)
G:\div_code\taichi_env
λ G:\div_code\taichi_env\Scripts\activate

# Test pip,see that it point to this folder and not OS installation 
(taichi_env) G:\div_code\taichi_env
λ pip -V
pip 20.1.1 from g:\div_code\taichi_env\lib\site-packages\pip (python 3.8)

# Install
(taichi_env) G:\div_code\taichi_env
pip install taichi
Download .....

# Test 
(taichi_env) G:\div_code\taichi_env
λ python fractal.py
[Image: 4w0o39.png]
Reply
#5
(Jun-30-2020, 12:18 PM)CatherineKan Wrote: I cannot open the second link, do you mind explain in detail?
From the image I see you use following command trying to install the package
Output:
pip install taichi -i "https://pypi.doubanio.com/simple/"
if you run pip install --help
Quote:-i, --index-url <url> Base URL of the Python Package Index (default https://pypi.org/simple). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

i.e. you pass pypi.doubanion.com as own repository (corporate one?)
I don't know if it exists - that's what you are doing....
And as I said - you create virtual environment, but it's not activated when you try to install the package. Follow @snippsat example


By the way - don't post images - copy/paste in respective tags all code, output, errors, cmd commands, etc.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to install caldwellpy package Samta282006 1 490 Dec-07-2023, 11:57 PM
Last Post: Larz60+
  How to install a download package in anaconda environment Viachan 2 1,591 Sep-29-2022, 09:20 AM
Last Post: Viachan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020