Sample Header Ad - 728x90

Python package installation using pip

0 votes
1 answer
174 views
I use Python both from Jupyter Notebook as well as directly from the terminal. My Python version is 3.10.12. I install packages both from the terminal (using pip install ) as well as from the notebook (using !pip install ). Mistakenly, I have also installed some packages earlier with sudo as well. As a result, I have versions of the same package available at multiple places: at /home/username/ as well as inside /usr/lib/python3/dist-packages,. Note that, I didn't have any environment created as well. So I think all the packages that I have externally involved are messed up among the system packages. As a result, I am facing conflicts and sometimes installed packages are not being found in most of the cases from inside Jupyter Notebook. My question is: . How to clean this mess up? . Can someone please provide the instructions to be followed from the beginning after installing Python?
Asked by Doi (23 rep)
May 7, 2024, 11:14 AM
Last activity: May 7, 2024, 03:21 PM