Python bot - Having some issues with the path

Subreddit

Newbie
Joined
Dec 31, 2021
Messages
19
Reaction score
8
Hi there,
I had python 3.10 installed but was having issues so uninstalled python 3.10 and installed python 3.9.9

I added python 3.9.9 to the "path" in environment variables but the issue is that the bot is still looking for python 3.10 path,
So how do I change the path to 3.9.9 or how do I delete the path of python 3.10.

running without menu
No Python at 'C:\Users\XXXXXXXXX\AppData\Local\Programs\Python\Python310\pyt
hon.exe'
exiting...
Press any key to continue . . .

<I'm Using Windows 8.1>
 
I'm assuming you want to install globally
Have you tried editing "~/.bashrc" ?
What path does python show if you type cat ~/.bashrc
 
dont know what you're trying to do exactly but i often face a problem with path in code. Sometime you need to put double slash, like this:

C:\\xxx\\xxx\\xxx etc
 
Hi there,
I had python 3.10 installed but was having issues so uninstalled python 3.10 and installed python 3.9.9

I added python 3.9.9 to the "path" in environment variables but the issue is that the bot is still looking for python 3.10 path,
So how do I change the path to 3.9.9 or how do I delete the path of python 3.10.



<I'm Using Windows 8.1>
This problem I usually face it when I script on WINDOWS so
try this C:/Users/XXXXXXXXX/AppData/Local/Programs/Python/Python310/pyt

or C://Users//XXXXXXXXX//AppData//Local//Programs//Python//Python310//pyt
 
Hi there,
I had python 3.10 installed but was having issues so uninstalled python 3.10 and installed python 3.9.9

I added python 3.9.9 to the "path" in environment variables but the issue is that the bot is still looking for python 3.10 path,
So how do I change the path to 3.9.9 or how do I delete the path of python 3.10.



<I'm Using Windows 8.1>
uninstall all python from your system, then download again and make sure to check path when asked on installing, it should be resolved there and then.
 
Right click on my computer -> properties -> System Advanced Settings

1649501449044.png


click on environment variables

1649501525319.png

then choose Path -> click on modify

1649501558983.png


look for old python modify it or delete it and the new python path

for example i installed python in this path : C:\Users\XSIMOX\AppData\Local\Programs\Python\Python310\Scripts

1649501590012.png


OR you can reinstall

1649501903762.png


click modify

1649501930901.png


skip next step then check this mark & install

1649502001170.png
 
You need to set the path to an environment variable in your interpreter for your project.
 
Going to be straight with you, just work inside WSL. Working with Windows for dev tasks is incredibly frustrating if you're new (or in general really)
 
In your system’s PATH env var, remove any Python310 entries and add the Python39 (plus Scripts) paths. Close and reopen the CMD prompt, then run


python --version

to confirm. If it’s still looking for 3.10, edit your bot’s launch script (.bat/.cmd) and update the hard-coded path to point at Python3.9.9.
 
In cmd type:
Code:
py -0
Its zero not "o"

You will get:
Code:
Installed Pythons found by py Launcher for Windows
 -3.11
 -3.10
 -3.9

Than run version what you prefer by:
Code:
py -3.9 your_script.py
 
use pycharm community is free, it's so the best software for python... and you will have no problems with path or python version
 
Back
Top