How to get rid of pygame 2.0.0.dev6? - python

i just installed python on my mac and i had also installed VS code with it. Later i tried installing pygame but it didn't work so i found another version that installed the version that is not stable, or pygame2.0.0.dev6 - i think that is have you type it. So that went succesfull, but after i found out why i was not being able to install the stable version, so now i want to get rid of pygame2.0.0.dev6 and install the stable version because in my VS code editor it keeps saying that it is using pygame2.0.0.dev6 even when i have the stable version installed.
Please all i want is to uninstall pygame2.0.0.dev6. I tried going to the documentation and i tried uninstalling from the terminal itself but i still cannot uninstall it. Help would me much appreciated. Thank you!

pip3 uninstall pygame==2.0.0.dev6
Windows users should use pip instead of pip3
Always use virtual environments. This version problem will be mitigated.

Related

Jupyter Notebook and pip referring to previous uninstalled python version

I have recently uninstalled python 3.7 and installed python 3.9. After that, when I try to use pip to install any package, it keeps trying to use python37.exe, which is not installed anymore. I was able to solve that by using python -m pip install, but the same does not work when I try to launch jupyter notebook, which still tries to use python37. I cannot launch it using a similar command python -m jupyter notebook.
I was wondering if there is any solution to this, since I could not find anything related to that.
Thanks in advance.
Maybe try to install it again using your new pip like
pip install notebook
(Sorry not enough reputation for a comment)
This usually occurs when jupyter is installed with a specific version of python. The easiest / best solution is to uninstall jupyter, then reinstall it with the correct version of python.
In your case, you should consider using python3.9 -m pip install jupyter (after first uninstalling jupyter).
Just to give you all an update in case anyone is facing the same problem.
I was able to find some remaining files and files of the previous installation of Python 3.7 in my system that were not deleted for some reason during the uninstall process. I deleted them manually and my system started to recognize Python 3.9 to call pip and jupyter after that.

Problems installing the right version of Python

Has anyone had this problem: when trying to install python>=3.6.6 by typing sudo apt-get install python>=3.6.6, to get another version? I get 3.5.3 and I do not understand why it happens so.
Could anyone help?
Thanks!
The version of python installed through apt is determined by the configuration in /etc/apt/sources.list. You can modified it to add additional sources but it is not recommended to do so since it may cause unexpected problems. A more safe way is to use anaconda or miniconda to manage your python environment. You can install any version of python through conda. Refer to this tutorial.

ICan't Do Anything With Pip because it won't install anything

Any time i try to install anything with pip i would get this type of error. I've updated my computer, updated visual studios, pip 20.0.2, python 3.8.2, and still nothing works, I've even tried reinstalling everything.
ERROR: https://i.stack.imgur.com/m8Yqv.png
You need to install PortAudio on your system to use one of the libraries you're trying to install.
try using pip3 instead of pip or check paths

Cannot change Windows Python Installation Path

I've once installed Python 3.6.2 - 32bit, however I wanted to install the 64 bit Version. When I want to uninstall it with the Windows Installer it tells me No Python 3.6 installation was detected. When I know choose Modify It only gives me a grayed out path.
Any Solutions how to get rid of it and reinstall?
I went a very old school way, I've used the old RegScanner Tool to search for any occurrences of Python36. Deleted all Keys/Values, restarted the machine and was able to uninstall it when launching the Python Installer.
I ran into a similar problem as this and ended up needing to:
Check "Add or remove programs" for previous versions of Python.
Download the installer for that version.
Repair the older version of Python Windows thought was installed.
Uninstall the older version.
Try to install the newer version again.
Have you tried to uninstalling it , from control panel first remove
the installed package
Make sure you installing as administrator
Still not helped then try uninstaller tool(here is one : http://www.softpedia.com/get/Tweak/Uninstallers/Advanced-Uninstaller.shtml)

Is it dangerous if I uninstall all the packages in `pip list` on MacOS?

The python I use is the one of MacOS. It seems that the python of the system did not carry pip, and pip is installed by myself.
It's very annoying to use the python of the system, there is always the "Permission denied" issue and I'm tired of this. So, I want to uninstall all the packages by pip firstly, and then use virtualenv. Before that, I'd like to know
Is it dangerous if I uninstall all the packages in pip list on MacOS?
Edit: Currently, there are both Python 2.6 and 2.7 on my mac in the directory: /Library/Python. Then can I remove python 2.7 totally and reinstall it in another way?
Do not uninstall MacOS python packages. I did that once. Wasn't a fun time. Even installing new packages can lead to huge problems as dependencies get updated and no longer work with OSX stuff, particularly stuff you can't even update because of SIP.
If you make a virtualenv, it will be totally separate from the OSX python. You can use pip in the virtualenv and it will not effect the pip outside of the virtualenv. In otherwords, you don't need to remove anything - just make the virtualenv and start pip insall'ing :)
I ended up installing Anaconda Python from Continuum Analytics and then setting my path to that python. This way I got an updated python to work with (plus a bunch of other advantages) but my Mac could keep Python 2.6 it needs to operate properly.

Categories