install taichi python package - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: install taichi python package (/thread-27972.html) |
install taichi python package - CatherineKan - Jun-29-2020 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/62559167/install-taichi-package-on-python And here is their documentation: https://taichi.readthedocs.io/en/stable/ RE: install taichi python package - buran - Jun-29-2020 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 RE: install taichi python package - CatherineKan - Jun-30-2020 (Jun-29-2020, 09:12 PM)buran Wrote: the package is available on pypi https://pypi.org/project/taichi/ 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! RE: install taichi python package - snippsat - Jun-30-2020 (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?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.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 RE: install taichi python package - buran - Jul-01-2020 (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 if you run pip install --helpQuote:-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. |