# How to delete a package for reinstallation purposes?

**URL:** <https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [February 6, 2019, 10:38am UTC](https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500 "2019-02-06T10:38:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmetumutdurmus](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@ahmetumutdurmus](https://discourse.julialang.org/u/ahmetumutdurmus)\
**Post date:** [February 6, 2019, 10:38am UTC](https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500/1 "2019-02-06T10:38:14Z")

</div>

Hello,

I am using package PyCall.jl to use Python package openpyxl. Yet I have accidentally (thinking it was another version of python) miniconda and python programs from my computer using the ‘Add or Remove Programs’ of my Windows 10. When I tried to use the PyCall package with the code `using PyCall` I got an error saying the program couldn’t locate the needed Python files. I then removed PyCall by `rm PyCall` from the package manager and readded it with `add PyCall` to no avail. The remove command merely removes the package from the project listing and does not actually delete the files and directories it has installed so when you reinstall it the relevant download process is skipped. Thus I get the following error when I run the code `using PyCall`:

`ERROR: ERROR: error compiling uv_alloc_buf: error compiling Type: could not load library "C:\Users\a durmus\.julia\conda\3\python36.dll" The specified module could not be found.`

Any ideas on how to fix this problem?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [February 6, 2019, 10:42am UTC](https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500/2 "2019-02-06T10:42:28Z")

</div>

You can try to rebuild the package:

```julia
pkg> build PyCall

```

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [February 6, 2019, 11:02am UTC](https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500/3 "2019-02-06T11:02:44Z")

</div>

Somewhat tangential to your question, have you seen [GitHub - felipenoris/XLSX.jl: Excel file reader and writer for the Julia language.](https://github.com/felipenoris/XLSX.jl)

---

<div class="post-metadata">

**Author:** ![ahmetumutdurmus](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@ahmetumutdurmus](https://discourse.julialang.org/u/ahmetumutdurmus)\
**Post date:** [February 6, 2019, 11:09am UTC](https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500/4 "2019-02-06T11:09:15Z")

</div>

Thanks for your solution. It worked.

---

<div class="post-metadata">

**Author:** ![ahmetumutdurmus](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@ahmetumutdurmus](https://discourse.julialang.org/u/ahmetumutdurmus)\
**Post date:** [February 6, 2019, 11:14am UTC](https://discourse.julialang.org/t/how-to-delete-a-package-for-reinstallation-purposes/20500/5 "2019-02-06T11:14:35Z")

</div>

Thanks. As a matter of fact yes I have indeed seen XLSX.jl, yet it didn’t seem to have enough methods to format the Excel file (As in adding fill or font color for example). That is why I had to resort to openpyxl.
