Issue
I (tried to) install spyder5 (for developing python programs) via anaconda. When starting spyder, I get 2 dependencies failures:
You have missing dependencies!
#Mandatory:
jedi =0.17.2:0.18.0 (NOK)
parso =0.7.0:0.8.2 (NOK)
However,
conda list
answers with:
...
jedi 0.17.2 py38h06a4308_1
...
parso 0.7.0 py_0
...
Which seems to indicate that the correct versions are installed on my conda environment. "Googling" a bit lead me to this post, where @ccordoba12 states that this problem can be solved by removing: C:\Users<user>\AppData\Roaming\Python
That is of course assuming windows. I could not try since I am running on linux
So my question is:
- what is the problem (!)?
- If python (...) caches packages as this seems to indicate, doesn't it defeat the objective of conda?
- Assuming this caching is really the problem, how can I remove the cache on linux and automate that action when loading different conda env.
Thx!
Solution
Doing an strace an spyder shows it was opening things from ~/.local/lib/python3.8.
Deleting this directory (actually renaming it, just in case), fixed the problem... ...if it can help others.
Not sure when python create this lib dir, and how conda is supposed to handle these "caches"
Answered By - user1159290
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.