How to delete a package for reinstallation purposes?




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?


You can try to rebuild the package:

pkg> build PyCall


Somewhat tangential to your question, have you seen


Thanks for your solution. It worked.


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.