Deeplearning/conda_env/recipe/README.md

45 lines
1005 B
Markdown

# Build and install Deeplearning conda package
This recipe packages both `Qfunctions` and `Qtorch` into one conda package:
- Package name: `deeplearning-qtools`
- Import names after install: `Qfunctions`, `Qtorch`
## 1) Build package
```bash
conda activate Deeplearning
conda install -n Deeplearning -y conda-build anaconda-client
cd /home/newbie/Project/MachineLearning/Deeplearning
conda-build conda_env/recipe
```
## 2) Install from local build output
```bash
conda activate Deeplearning
conda install -n Deeplearning -y -c local deeplearning-qtools
```
## 3) Verify imports
```bash
python -c "import Qfunctions, Qtorch; print('ok')"
```
## 4) Upload to Anaconda.org (optional)
```bash
# Login once
anaconda login
# Upload generated package (linux-64/noarch path depends on build output)
anaconda upload /home/<USER>/miniconda3/conda-bld/noarch/deeplearning-qtools-0.0.1-py_0.conda
```
After upload, others can install with:
```bash
conda install -c <your-channel> deeplearning-qtools
```