# Could I use Python Dict or convert Julia Dict to Python Dict in Julia?

**URL:** <https://discourse.julialang.org/t/could-i-use-python-dict-or-convert-julia-dict-to-python-dict-in-julia/46632>\
**Category:** New to Julia\
**Tags:** pycall, python\
**Created:** [September 15, 2020, 10:43am UTC](https://discourse.julialang.org/t/could-i-use-python-dict-or-convert-julia-dict-to-python-dict-in-julia/46632 "2020-09-15T10:43:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ke\_Gao](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@Ke\_Gao](https://discourse.julialang.org/u/Ke_Gao)\
**Post date:** [September 15, 2020, 10:43am UTC](https://discourse.julialang.org/t/could-i-use-python-dict-or-convert-julia-dict-to-python-dict-in-julia/46632/1 "2020-09-15T10:43:35Z")

</div>

Hi,  
I am writing a piece of code that need to load a Python package with `PyCall`.

But when I transfer a Julia Dict to the package, I got an error. I think it is because the package can not identify the **Julia** Dict, so I would try to transfer a **Python Dict** to the package.

So my question is, how could I use Python Dict or convert Julia Dict to Python Dict in Julia?

Any suggestions are welcome, thank you!

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [September 15, 2020, 11:05am UTC](https://discourse.julialang.org/t/could-i-use-python-dict-or-convert-julia-dict-to-python-dict-in-julia/46632/2 "2020-09-15T11:05:07Z")

</div>

If you haven’t done so already, start with searching for “dict” in the README at [https://github.com/JuliaPy/PyCall.jl](https://github.com/JuliaPy/PyCall.jl) and see if the information you find there is enough to help you solve the problem.

---

<div class="post-metadata">

**Author:** ![Ke\_Gao](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@Ke\_Gao](https://discourse.julialang.org/u/Ke_Gao)\
**Post date:** [September 15, 2020, 12:05pm UTC](https://discourse.julialang.org/t/could-i-use-python-dict-or-convert-julia-dict-to-python-dict-in-julia/46632/3 "2020-09-15T12:05:17Z")

</div>

Thank you for your suggestion! I read the README and found the dict in julia and python would convert automatically, and I check my code again, it seems that the error is not caused by the dict…my mistake.
