TensorLayerX has some prerequisites that need to be installed first, including TensorFlow , MindSpore, PaddlePaddle, PyTorch, numpy and matplotlib. For GPU support CUDA and cuDNN are required.
If you run into any trouble, please check the TensorFlow installation instructions, MindSpore installation instructions, PaddlePaddle installation instructions, PyTorch installation instructions, which cover installing the TensorFlow for a range of operating systems including Mac OX, Linux and Windows, or ask for help on firstname.lastname@example.org or FAQ.
For stable version:
pip3 install tensorlayerx pip install tensorlayerx -i https://pypi.tuna.tsinghua.edu.cn/simple (faster in China)
For latest version, please install from github.
pip3 install git+https://github.com/tensorlayer/TensorLayerX.git
For developers, you should clone the folder to your local machine and put it along with your project scripts.
git clone https://github.com/tensorlayer/TensorLayerX.git
Alternatively, you can build from the source.
# First clone the repository and change the current directory to the newly cloned repository git clone https://github.com/tensorlayer/TensorLayerX.git cd tensorlayer python setup.py install
This command will run the
setup.py to install TensorLayerX.