I accidentally wrote "pip3 install f" and it installed something [duplicate] - python-3.x

This question already has an answer here:
how to cleanly uninstall my python packages with pip3 or any other way?
(1 answer)
Closed 4 years ago.
I pressed pip3 install f accidentally and it installed some modules i think. How do i uninstall this module that I got? It would be useful to learn how to uninstall pip3 installed modules in general
pip3 install f
Collecting f
Downloading https://files.pythonhosted.org/packages/b4/8c/cbf1a85c4bc899bf64f3b32626056aaa8ded20e66df4396d13f82059ed39/f-0.0.1-py2.py3-none-any.whl
Collecting Six (from f)
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: Six, f
Successfully installed Six-1.11.0 f-0.0.1

pip3 uninstall Six f
Its pretty straightforward.

Related

Error while installing AGE AGType parser and driver support for Python [duplicate]

This question already has answers here:
ModuleNotFoundError: No module named 'distutils.core'
(6 answers)
Closed 2 days ago.
I am installing AGE driver support for python by following their documentation. I have python 3.10 on my Ubuntu. I have cloned the repository successfully. But when i run the command python setup.py install. I am getting this error.
It would be great if someone help.
This means that you don't have the package installed.
Run the following commands
sudo apt update
sudo apt install python3-distutils
sudo apt install python3-apt
And if the error still not goes away try re-installing the packages.

How do i install an previous of flask? [duplicate]

This question already has answers here:
Installing specific package version with pip
(12 answers)
Closed 2 years ago.
I want to install an older version of flask and can't figure out how to do that and I am using an Linux machine. I checked other questions about how to determine the version of flask but they only return the version of flask and even after trying different methods I cannot figure out how to do it.
pip install flask==<VERSION>
Looking at the pip documentation it looks like you can do that by typing:
pip install packagename == 1.4
in this case you would type pip install flask==(the version you want)

Error with pip install: "No moduel named pip.__main__" [duplicate]

This question already has answers here:
How do I install pip on Windows?
(40 answers)
Closed 4 years ago.
On my computer (windows 8.1) there is python 3.4.
When I try to install module with pip install the code that I use is:
py -m pip install ...
But the command line returns the following error:
C:\Python34\python.exe: No module named pip.__main__; 'pip' is a package and cannot be directly exec
uted
Pip is just not a standalone executable. It is a python module.
So as a matter of fact you can do this (Tested with numpy, worked correctly as wanted):
python -m pip install numpy
Well, you should see the documentation on Python.
I did mention that Pip is a standalone executable. If it is in you path then you can also do this:
pip install numpy
Make sure python is in your path.

Cannot uninstall 'chardet' while installing kiteconnect 3.7.4 [duplicate]

This question already has answers here:
pip cannot uninstall <package>: "It is a distutils installed project"
(6 answers)
Closed 2 years ago.
Trying to install spyder using pip:
pip install spyder
This error pops up:
Cannot uninstall 'ipython'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.
You can upgrade ipython without uninstall the old version
sudo -H pip install --ignore-installed -U ipython
Just solved with:
sudo apt-get remove ipython
For Python 2:
pip install --upgrade --force-reinstall --no-cache-dir Spyder
For Python 3:
pip3 install --upgrade --force-reinstall --no-cache-dir Spyder
Some of the solutions listed may work, but this one solved my issue with distutils installed packages.
sudo apt-get remove python-ipython
Depending on what type of package it is, you will need to provide the "python-" for python packages.
Edit:
However, if this still does not solve your question, you might want to consider downgrading pip to an earlier version as pip 10 does not allow removal of distutils packages
sudo -H pip install pip==9.0.1
sudo pip uninstall ipython
Thank you for the comment, as I am looking to improve how I can help people.

Installing pandas, python34? [duplicate]

This question already has answers here:
Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat) when running Python script [duplicate]
(8 answers)
Closed 4 years ago.
I am trying to install pandas and I keep getting an error
Microsoft visual c++ 10.0 is required?
Is it really necessary to have it ? and how can I have it?
when I try to upgrade pip from 9 to 18, it says I should do it through python, how is that?
Thanks in advance
You should first try to upgrade your pip from version 9 to version 18.
If you have virtual environment. Then first activate your virtualenv or else if you have global python installed. They simply type the following command
pip install --upgrade pip
This will show the following output
(p_env) ➜ python_playground git:(master) ✗ pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 1.4MB/s
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.0
Once your pip is upgraded. Then type the following command to install pandas
pip install pandas

Resources