How to install a package file

45 views
Skip to first unread message

Tyler Wang

unread,
Dec 8, 2022, 12:11:04 AM12/8/22
to Anaconda - Public
Hi all,

I'm new to conda. We want to build conda packages to install them in the VMs.
For example we want to have a package specifically for xgboost users. We want have these in the package:

papermill 
pandas 
pandas-profiling 
plotly 
requests 
scikit-learn 
scipy 
google-api-core 
urllib3 
scikit-learn 
"xgboost==1.1.1" 

After building a new package which contains all above, we have a new package named xgboost-test-1.0.20221206-py37_0.tar.bz2.

Then there are two way I figure out to install:
1. Copy the whole folder which has linux-64/ and noarch/ to the new environment and run `conda install -c /path/to/channel/linux-64 xgboost-test`
2. Only copy the new package to channel/linux-64 in a new folder, use `conda index channel/` to setup a new channel, and install it using `conda install --use-local -c /path/to/channel/linux-64 xgboost-test`

Is there any other way I can only move this new package to another computer and install it over there? The two way I know are not idealistic to me. I don't think it's convenient to setup a channel every time. I thought there is a way which I can simply install the new package file, that's more quick and straight forward. 

Thanks for your help!

Best regards,
Tyler
Reply all
Reply to author
Forward
0 new messages