'Can't find pip-installed package after removing its apt-get version
I installed a package named black via apt-get
I removed it (because its version is too old)
I installed the package via
pip3 install black, inside a conda enviroment (named py38).I try to use it, but the package can't be found.
unless I call it via its absolute path:
(py38)user@comuter:~/tools$ black ..
bash: /usr/bin/black: No such file or directory
(py38)user@comuter:~/tools$ /home/user/miniconda3/envs/py38/bin/black ..
How could I fix it?
Solution 1:[1]
I opened a new terminal today and the problem is gone.
I think @merv is right about the conda initialization thing : )
All you need to do is restart the terminal.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | zheyuanWang |
