Posts: 7
Threads: 4
Joined: Jun 2020
Jun-29-2020, 08:51 PM
(This post was last modified: Jun-29-2020, 08:51 PM by CatherineKan.)
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!
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/
Posts: 8,160
Threads: 160
Joined: Sep 2016
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
Posts: 7
Threads: 4
Joined: Jun 2020
(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!
Posts: 7,319
Threads: 123
Joined: Sep 2016
Jun-30-2020, 02:12 PM
(This post was last modified: Jun-30-2020, 02:12 PM by snippsat.)
(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
Posts: 8,160
Threads: 160
Joined: Sep 2016
Jul-01-2020, 04:04 AM
(This post was last modified: Jul-01-2020, 04:04 AM by buran.)
(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.
|