Cannot install pip3 from python 3.10

i had a python 3.9.2 activestate installed.
i tried to uninstall this version. unfortunately i deleted the folder
I installed new Python 3.10.2
When i try to install a package via pip3 lets say telethon i get the following message:

Could not find project file at /downloads/Python-3.9Beta

Need More Help?
• Run → state exec --help for general help
• Ask For Help → State Tool - ActiveState Community

How can i complety uninstall the old python 3.9?
What can i do?


Some things to think about:

  • Since the state tool installs virtual environments by default, you can run multiple versions of Python on your system
  • If you’ve installed both Python 3.9Beta and Python 3.10.2, you likely have 2 projects on your system. You can list which projects you have installed by running state projects
  • You can see which project is currently active by running state show
  • You can switch between projects by running state activate <organization_name>/<project_name>

You might try activating your Python 3.10.2 project by doing the following:

  1. Make sure you are logged into the Platform by running state auth
  2. Run state activate facetoface/Python-3.10.2 (assuming your org name is face-to-face and the project is actually called Python 3.10.2)

If you want to uninstall everything and start again, you should first stop all state tool processes by running the following at a CMD prompt:
powershell -Command "& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('')))"

You can then run state clean uninstall

For more information, see Uninstall :: ActiveState Platform Documentation