# Can PythonCall / CondaPkg use custom channels?

**URL:** https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815
**Category:** General Usage
**Tags:** question, pythoncall, conda, conda-forge
**Created:** [April 23, 2023, 1:40pm UTC](https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815 "2023-04-23T13:40:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![huguesmp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/huguesmp/32/202444_2.png) [@huguesmp](https://discourse.julialang.org/u/huguesmp)
#### Post date: [April 23, 2023, 1:40pm UTC](https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815/1 "2023-04-23T13:40:57Z")

</div>

I use Julia in a very restrictive corporate environment at work. For python packages, we must use [Artifactory](https://jfrog.com/artifactory/) for both Conda and pip.

This means that for the `conda` command to work, I need a `.condarc` file which sets up the channels to be the internal ones, which act as proxies of sorts to the official `anaconda` and `conda-forge` servers.

I tried all three [configuration](https://cjdoris.github.io/PythonCall.jl/stable/pythoncall/#pythoncall-config) scenarios in the PythonCall documentation, but it seems like CondaPkg was always reaching for the official `conda-forge` repository, so I wasn’t able to get anything going.

Is there a way to make CondaPkg respect my `.condarc` file or, alternatively, to configure custom channels to replace the defaults ones?

---

<div class="post-metadata">

### Author: ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)
#### Post date: [April 23, 2023, 9:09pm UTC](https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815/2 "2023-04-23T21:09:55Z")

</div>

Didn’t see it in the docs either. @cjdoris ?

---

<div class="post-metadata">

### Author: ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)
#### Post date: [April 24, 2023, 7:38am UTC](https://discourse.julialang.org/t/can-pythoncall-condapkg-use-custom-channels/97815/3 "2023-04-24T07:38:38Z")

</div>

CondaPkg doesn’t have any direct means to override channels right now.

On the other hand, it also doesn’t override any global config, so env vars and rc files should work as normal (I think).

Just note that CondaPkg by default uses Micromamba not Conda, so you may need to configure it differently. Or set CondaPkg to use Conda if you already have it installed.
