This guide provides step-by-step instructions to create and configure a Conda environment with the required libraries for the project.
Ensure you have the following installed on your system:
- Conda (Anaconda or Miniconda)
- Python 3.8 or higher
Run the following command in your terminal to create a new environment with Python 3.8:
conda create --name robotics_env python=3.8 -y
Replace robotics_env
with your preferred environment name.
Activate the newly created environment:
conda activate robotics_env
Install the required libraries using the following commands:
Use the conda-forge
channel to install Flask, NumPy, and Requests:
conda install -c conda-forge flask numpy requests
Install Robotics Toolbox for Python and SpatialMath:
pip install roboticstoolbox-python spatialmath-python
To verify that all required libraries are installed and working, run the following command:
python -c "import flask, numpy, requests, roboticstoolbox, spatialmath; print('All libraries are installed successfully')"
If no errors appear, the setup is complete!
- Always activate the environment before running your project:
conda activate robotics_env
- If you encounter issues, ensure you are using the correct Python environment or reinstall the missing libraries.
- List all Conda environments:
conda env list
- Remove the environment:
conda remove --name robotics_env --all